sandy1028 Posted August 13, 2007 Share Posted August 13, 2007 hi, How to refresh the data in URL using meta tag where the query string is passed $fullrep = "<a href=$PHP_SELF?$QUERY_STRING > here </a>" How to refresh the data passed in URL after submit. Link to comment https://forums.phpfreaks.com/topic/64643-refresh/ Share on other sites More sharing options...
Wuhtzu Posted August 13, 2007 Share Posted August 13, 2007 Maybe I'm dumb () but I need some more explanation on what you wanna do if I shall be able to help you. Link to comment https://forums.phpfreaks.com/topic/64643-refresh/#findComment-322276 Share on other sites More sharing options...
MadTechie Posted August 13, 2007 Share Posted August 13, 2007 LOL, i was goin to reply with "What ?" but didn't its true what is the "problem" ? Link to comment https://forums.phpfreaks.com/topic/64643-refresh/#findComment-322280 Share on other sites More sharing options...
sandy1028 Posted August 13, 2007 Author Share Posted August 13, 2007 Hi, I have passed the query string which is passed to same page... After the submit button is clicked the values in the URL is not getting cleared The URL is of the form ...../test.php?name=abc&address=abc&[email protected]&subject=Hi&query=hi&submit=Submit+Query How to clear the data in URL after ? name=abc&address=abc&[email protected]&subject=Hi&query=hi&submit=Submit+Query Link to comment https://forums.phpfreaks.com/topic/64643-refresh/#findComment-322282 Share on other sites More sharing options...
NArc0t1c Posted August 13, 2007 Share Posted August 13, 2007 $_SERVER['PHP_SELF']; Result: /script.php Without GET String. Capture the data you need and redirect to the current page, Resulting in only the script name. Example: <?php if (isset($_GET['Submit'])){ //Capture Data. header("Location: ".$_SERVER['PHP_SELF']); //Or using Javascript.. echo '<script>document.location = "' . $_SERVER['PHP_SELF'] . '";</script>'; exit; } echo 'Form'; // Your form can come here. ?> Link to comment https://forums.phpfreaks.com/topic/64643-refresh/#findComment-322287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.