Hello Mates,
I have the following php code which verify a form validation
the name and email was verified succefuly but i still have the phone that it might be verified ? any thread on how it wil be done it will be appreciated
i have tried the if(!preg_match function and didnt work ...However
again i appreciate your kindly assistance
function VerifyForm(&$values, &$errors)
{
// Do all necessary form verification
if (strlen($values['name']) == 0)
$errors['name'] = 'Enter your name';
// Needs better checking
if (!ereg('.*@.*\..{2,4}', $values['email']))
$errors['email'] = 'Email address invalid';
I have the following php code which verify a form validation
the name and email was verified succefuly but i still have the phone that it might be verified ? any thread on how it wil be done it will be appreciated
i have tried the if(!preg_match function and didnt work ...However
again i appreciate your kindly assistance
function VerifyForm(&$values, &$errors)
{
// Do all necessary form verification
if (strlen($values['name']) == 0)
$errors['name'] = 'Enter your name';
// Needs better checking
if (!ereg('.*@.*\..{2,4}', $values['email']))
$errors['email'] = 'Email address invalid';