Jump to content

validate email address


bal bal

Recommended Posts

http://www.webcheatsheet.com/php/regular_expressions.php#match On that page, a little below the "Matching Patterns" header, there is info on validating email address.

 

As for validating whether other fields where completed, you'll need to do a check like

if(trim($_POST['pet']) <= ""){ $error = "Please pick a pet"; }

http://www.webcheatsheet.com/php/regular_expressions.php#match On that page, a little below the "Matching Patterns" header, there is info on validating email address.

 

As for validating whether other fields where completed, you'll need to do a check like

if(trim($_POST['pet']) <= ""){ $error = "Please pick a pet"; }

 

thanks a lot mate....

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.