Ok ... got a problem. Huge surprise right? Here is what I am attempting to do ...
Send something like: <a href='somepage.php?variable=2'> .... No problem right? Goes to somepage.php and $variable=2. Gotcha.
Here is the problem. I have a refresh in the page. It refreshes every 3 seconds (don't ask). When it refreshes the $variable still equals 2! How do I get it to clear out all the variables once it is done processing? I have tried Unset($variable); , $variable=""; ... nothing seems to work! This is VERY harmful in my case because if it sits open like this it makes entries in the database. Which is never good. 🙂 So ... is this a headers problem? I found some code that might take care of it however I have no idea what this particular code does. Any help would be great!
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
Like I said any help into this would be great! Thanks so much!
Chad R. Smith