Why is my page not redirecting on success

前端 未结 3 959
星月不相逢
星月不相逢 2021-01-24 07:57

I have some code that I was given; there is a $_POST variable (email) that shows as having content, yet when I test for it using isset, it fails. I don\'t understand w

3条回答
  •  感动是毒
    2021-01-24 08:26

    Try :

    if (empty($_POST['email']))  {  
    header("Location: "."error.php?msg=".rawurlencode("We did not find your information, please enter the needed information again."));
    exit;
    } 
    

提交回复
热议问题