Stop PHP reposting data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tdsrogers
Forum Newbie
Posts: 11
Joined: Sat Mar 06, 2010 12:44 pm

Stop PHP reposting data

Post by tdsrogers »

Hi
I am having problems with my web pages re-posting data. I know using a session destroy varaible is a way to stop this but has anyone got a piece of code I can use and on which file do I enter the session variable?
Thanks
TDSR
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Stop PHP reposting data

Post by Christopher »

I assume you are talking about re-posting forms. The usual solution is to redirect to an success page if the form validates.
(#10850)
Post Reply