Jump to content

unsetting a session variable and help with refresh related issues


binxalot

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.