clearing $_POST variables
Posted: Tue Jan 07, 2003 2:08 pm
I am using $_POST variables in some of my scripts, and sending the info to a database. However, if a user reloads the page, the data is sent again (resulting in repeat entries).
Is there any way to destroy $_POST variables after use? Using unset() does not work, since reloading the page will re-initialize $_POST variables. I need to destroy the variable entirely (ie: use $_POST['id'], then get rid of it so subsequent calls will not work).
Is there any way to destroy $_POST variables after use? Using unset() does not work, since reloading the page will re-initialize $_POST variables. I need to destroy the variable entirely (ie: use $_POST['id'], then get rid of it so subsequent calls will not work).