John Pretti wrote:
OK now I am really lost. Here is what I am not following, the first
time the form is run it will have no parameters so the form will
just be presented; however if someone clicks promote without
selecting a directory it will still be blank, so how can perl
determine when the promote button has been pressed and blank
parameters are being passed to the script.

if ( $q->param('promdir') ) { # success code } elsif ( $q->param('Promote') ) { die 'Invalid input'; # or whatever you want } else { # print form }

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to