plodos Posted December 28, 2008 Share Posted December 28, 2008 URL is coming from header("Location:".$_SERVER['HTTP_REFERER']."?wrong_code9=true"); http://aaaa.com/add_new_reviewer.php?wrong_code9=true add_new_reviewer_save.php <?php if(isset($_REQUEST['wrong_code9'])) { unset($_REQUEST['wrong_code9']); header("Location:".$_SERVER['HTTP_REFERER']."&wrong_code=true"); } else { header("Location:".$_SERVER['HTTP_REFERER']."?wrong_code=true"); } ?> URL is coming than if(isset($_REQUEST['wrong_code9'])) if that is true unset($_REQUEST['wrong_code9']); than activate wrong_code=true but unset is not working, WHY ? Link to comment https://forums.phpfreaks.com/topic/138667-solved-unset_requestwrong_code9-unset-is-not-working-why/ Share on other sites More sharing options...
plodos Posted December 28, 2008 Author Share Posted December 28, 2008 I changed the location of unset($_REQUEST['wrong_code9']); and it is solved Link to comment https://forums.phpfreaks.com/topic/138667-solved-unset_requestwrong_code9-unset-is-not-working-why/#findComment-725009 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.