-----Original Message-----
From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 11:47 AM
To: [EMAIL PROTECTED]
Subject: Re: Form Validation
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
--
This works great. Thanks to the entire list for the help especially Gunnar
and Lee from JupiterHost, it is people like yourselves that make learning
great.
Cheers,
John
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>