This is a simple form parsing script that is packed with power. It replaces
my ever popular Attack Guard (All versions). This subroutine will take
form data submitted via either GET or POST and parse it into something
useable by you.
To use the sub/script:
At any point in your script before you call it, you must "require" the script
so that it may be accessible to your program. This is done by the following
statement:
require 'parse.pl';
After that you just call the script before attempting to parse any form data:
&Parse;
Voila! The script will then take all submitted form data and return it in
a relative hash called %FORM. Therefore, if your form contained the fields
named "name", "email" and "comments" which I filled out, the parse.pl would
return the following for you to use:
$FORM{'name'} = "Jim Melanson"
$FORM{'email'} = "webmaster@perlservices.com"
$FORM{'comments'} = "Hello World!"
|