Re: form validation

by "Buddy Harris" <bharris(at)stny.rr.com>

 Date:  Fri, 8 Feb 2002 08:31:07 -0500
 To:  "HWG techniques" <hwg-techniques(at)hwg.org>
 References:  mcgill
  todo: View Thread, Original
> > Okay, so where might I find a server side script to validate the form?
Would
> > I have to use a SSI to include the file? Does it go in the.htacces file?
I'm
> > clueless about this kinda stuff.
>
> No they mean the script on the server that will process
> the form data needs to do form validation.
> HTH
> As Always
> r

They're talking about using something like I sent (personally, by accident).
To add to your perl script.

$MyVariable = param("field_name");
 if (! $MyVariable) {
print "<h1>HEY, HOW CAN I SEND THE ITEM IF I DO NOT KNOW YOUR
ADDRESS??</h1>\n";
print "<br><a href=form.html>Go Back</a>\n";
exit;
}

# The "$MyVariable = param("field_name");"  might be "$MyVariable =
$FORM{'field_name'}".  You can see how
fields are specified by looking at your script code.

The "!" means "not" to perl.

HTH,
Buddy

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA