Hi people,
I'm looking to allow certain characters when a person enters a name. At the moment letters upper and lower case are allowed but i'm looking to allow full stops and slashes as well but not sure how it is done!
here is the code i am using! im sure it is a fairly simple change but i ahve no idea at the moment! maybe i need more coffee lol
I'm looking to allow certain characters when a person enters a name. At the moment letters upper and lower case are allowed but i'm looking to allow full stops and slashes as well but not sure how it is done!
Code:
if (!ereg("^[ZA-Za-z' -]{1,50}$",$company))
{
unset($_GET['do']);
$message_new = "$company is not a valid company name. Please try again.";
include("new_member.php");
exit();
}
here is the code i am using! im sure it is a fairly simple change but i ahve no idea at the moment! maybe i need more coffee lol