binxalot Posted January 30, 2007 Share Posted January 30, 2007 I'm working on a new script which is supose to update itself and then display the updated information back into the same page using an html form with this as the post submit action <?=$_SERVER["PHP_SELF"]?> . The script works, it will update a mysql database with new form values information, but I want it to return those updated results when the page reloads back into itself. What happens instead is that the database updates, but the old information stays on the new page. If I press F5 and refresh my browser the new data will show up.I'm not sure if this is a problem with the browser, or my awful coding abilities, I suspect its a little of both, but I'm lost to figure out why this happens. Next is php sessions, I have a config page that will register a session variable called $matchid which is a number. When I try to unset($_session['matchid'];) the script will work, but not until I hit F5 again to refresh the browser. Should I be including some other code in my php to help the browser refresh itself? Link to comment https://forums.phpfreaks.com/topic/36367-unsetting-a-session-variable-and-help-with-refresh-related-issues/ Share on other sites More sharing options...
Orio Posted January 30, 2007 Share Posted January 30, 2007 Can you share some code...?Orio. Link to comment https://forums.phpfreaks.com/topic/36367-unsetting-a-session-variable-and-help-with-refresh-related-issues/#findComment-172950 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.