Ron said:
Maybe more of an html question but here goes. I have a form with a
drop-down list I would like to require the user to make a selection on. How
would I go about doing this?
-----------
well, the cgi group IS more in line with this, but if you are sending
the form to a perl script... you just have to check the contents of
the parameter, and send the user an error message or back to where
they came from...
use CGI qw( param );
my $FilePath = param( 'FilePath' );
unless ( $FilePath ) {
print "Content-type: text/plain \n\n".
"you need to make a selection for FilePath...\n" ;
}
remember that checking with javascript on the webpage is ok, but wont
protect you from anyone TRYING to send bad stuff as they can write a
script to feed your script whatever they want. You HAVE to check it
server-side.
d