are u submitting an html form with the GET method to ur script? if so then u will be able to access everything that u have submited thru $ENV{'QUERYSTRING'}. then u havta split the data into 2 parts - the field names, and their values. u can do it this way:
@data = split /&/ , $ENV{'QUERYSTRING'}; #this will put every name=value pair as separate elements into the array.
then you can create a hash that will hold all your data like this:
for ( @data ) {
( $key , $value ) = split /=/ , $_;
$dataset{$key} = $value;
}
and ur done! now you can access ur data like this:
$dataset{watever} will return "3", and $dataset{blah} will return "what".
and you can work ur way from there.
Enter your message below
Sign in or Join us (it's free).