awohld has asked for the wisdom of the Perl Monks concerning the following question:
I want it to exit out if the input contains anything but numbers. My input should be any number from 0 to 99999.my $sid = $q->param ('sid'); if($sid !~ /0-9/) { print "Content-type: text/html\n\n"; print "Invalid Input!"; exit(0); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Filtering CGI Input
by Tanktalus (Canon) on Apr 24, 2005 at 05:29 UTC | |
by awohld (Hermit) on Apr 26, 2005 at 03:45 UTC | |
by Tanktalus (Canon) on Apr 26, 2005 at 04:10 UTC | |
|
Re: Filtering CGI Input
by matthewb (Curate) on Apr 24, 2005 at 08:30 UTC | |
|
Re: Filtering CGI Input
by davido (Cardinal) on Apr 24, 2005 at 05:31 UTC | |
|
Re: Filtering CGI Input
by chas (Priest) on Apr 24, 2005 at 05:29 UTC | |
|
Re: Filtering CGI Input
by crashtest (Curate) on Apr 24, 2005 at 06:15 UTC | |
by davidj (Priest) on Apr 24, 2005 at 07:10 UTC |