I am trying to detect if the user has entered any characters beside alpha numeric on a form.
This is what i have so far. I dump the form data field into a scalor called $field. Problem is that when I do type in alpha numeric it still thinks it is a special character. Any help is appreciated.
Code so far...
if ($username !~ /^ [a-zA-Z0-9_\-+ \t\/@%]+$/) {
&report_bad_input;
exit;
<i>Its okay to dream.....</i>
This is what i have so far. I dump the form data field into a scalor called $field. Problem is that when I do type in alpha numeric it still thinks it is a special character. Any help is appreciated.
Code so far...
if ($username !~ /^ [a-zA-Z0-9_\-+ \t\/@%]+$/) {
&report_bad_input;
exit;
<i>Its okay to dream.....</i>