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); }
In reply to Filtering CGI Input by awohld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |