Jump to content

Validate A Space


phpretard

Recommended Posts

If you cant get that going might be worth trying this : Dont know if this will help yet as I can't see your Variables. You will need to amened $erraddress to your own Variable (what every you have used)

 

 


if(preg_match("/^[a-zA-Z0-9 _-.,:\"\']+$/", $_POST["address"]) === 0)
$errAddress = '<p class="errText">Address must be only letters, numbers or one of the following _ - . , : " '</p>';

Link to comment
https://forums.phpfreaks.com/topic/104402-validate-a-space/#findComment-534469
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.