July 11th, 2003, 11:32 PM
clear GET & POST value on refresh page
when I fill a form and then submit it , it works right
But I wanna if then form refreshed by user, address changes to
[address] without POST & GET
Any advice is most welcome!
July 12th, 2003, 12:32 AM
July 12th, 2003, 01:36 AM
July 12th, 2003, 04:04 AM
your answer, i hope
what it sounds like you want to do is have them submit a form, either GET or POST, and process the data, but you don't want them to hit refresh and submit the form mulitple times, right?
to fix this, here's what you'll have to do.
when they submit the form, go ahead and process their form like normal, whether that's talking to mysql or whatever. then, before you echo anything, you call a header() function
where "mypage.php" is the name of the file you want them to go to. this'll send 'em to that page automatically, and when they hit refresh on the new page, it won't resubmit the form.
hope this helps,
.: bus: www.inversiondesigns.com
.: me: awulf.inversiondesigns.com