Hello,
Can someone tell me how to do a simple check to see if a form that is submitted that has a url field has the http:// at the beginning of that field, if not reject with an error message, saying url is not in proper format, make sure you have the http:// at the beginning of the url field.
I know how to replace things using the following:
print "
<b><font color=\"red\">Error!</font></b>
Username: A unique Username is required, if your getting this error, then you didn't enter the submit ad form from an authorized location!";
exit;
}
[\pre]
But can't find in any of my perl books how to make sure that a field contains something.
Thanks
Harrison
"I've got if's pretty good, but that's about it"
Can someone tell me how to do a simple check to see if a form that is submitted that has a url field has the http:// at the beginning of that field, if not reject with an error message, saying url is not in proper format, make sure you have the http:// at the beginning of the url field.
I know how to replace things using the following:
Code:
if ($Username eq ""){ print "
<b><font color=\"red\">Error!</font></b>
Username: A unique Username is required, if your getting this error, then you didn't enter the submit ad form from an authorized location!";
exit;
}
[\pre]
But can't find in any of my perl books how to make sure that a field contains something.
Thanks
Harrison
"I've got if's pretty good, but that's about it"