I get the following error:
Notice: Array to string conversion in C:\Documents and
Settings\ShepMo de\Desktop\Webs ites\ShareMonke y.net\Web\join. php on line 11
in this code:
$input = array(array("Fi rst
Name",$_POST['firstname']),array("Surnam e"=>$_POST['surname']),array("Compan
y Name"=>$_POST['company_name']),
array("Website / Application
URL"=>$_POST['url']),array("Email
Address"=>$_POS T['email']),array("Userna me"=>$_POST['username']),
array("Password "=>$_POST['password']));
(line 11) if (substr_count($ value,"@") != 1) {
$error_message .= "The email address you have
entered is invalid.<br>";
}
Why does substr_count($v alue,"@") cause this notice? And since it is not an
error as such, how do I rectify it without modifying php.ini?
Thanks,
Keiron
Notice: Array to string conversion in C:\Documents and
Settings\ShepMo de\Desktop\Webs ites\ShareMonke y.net\Web\join. php on line 11
in this code:
$input = array(array("Fi rst
Name",$_POST['firstname']),array("Surnam e"=>$_POST['surname']),array("Compan
y Name"=>$_POST['company_name']),
array("Website / Application
URL"=>$_POST['url']),array("Email
Address"=>$_POS T['email']),array("Userna me"=>$_POST['username']),
array("Password "=>$_POST['password']));
(line 11) if (substr_count($ value,"@") != 1) {
$error_message .= "The email address you have
entered is invalid.<br>";
}
Why does substr_count($v alue,"@") cause this notice? And since it is not an
error as such, how do I rectify it without modifying php.ini?
Thanks,
Keiron
Comment