I got this error can anyone help me?
Notice: Undefined index: submit in
D:\xampp\htdocs\testsubject\cntcinfo.php on line 7
This is my code:
if($_POST['submit']=='Update')
{
mysqli_query($link," UPDATE usr_profile
SET phone='".$_POST['phone']."',
email='".$_POST['emails']."',
address='".$_POST['address']."',
postcode='".$_POST['postcode']."',
city='".$_POST['city']."';
");
header('Location: '.$_SERVER['HTTP_REFERER']);
exit;
}
I tired to use isset
but I got this error instead:
Fatal error: Cannot use isset() on the result of an expression (you
can use "null !== expression" instead) in
D:\xampp\htdocs\testsubject\cntcinfo.php on line 7
this is my isset
if(isset($_POST['submit']=='Update'))