Re: [PHP] Clearing POST variable on page refresh
Beauford wrote:
Hi,
I have a page with a form on it which posts to itself. The problem is when
someone refreshes the page it enters the data into the DB again. How do I
clear these variables so that doesn't happen. I tried the unset function,
but no luck. I really don't want to use sessions or cookies as this is just
a simple little page, but still, it has to work right.
sessions are no big deal - search the list archive for stuff like 'form token'
until you find one of the many explainations of how to tackle this issue using
a 'one time' token concept (find the posts by Richard Lynch - they are the most
complete/abundant/explicit AFAICR) - the solution does use sessions, but like I
said thats not a big deal at all. :-)
Thanks
.
Relevant Pages
- Clearing POST variable on page refresh
... I have a page with a form on it which posts to itself. ... someone refreshes the page it enters the data into the DB again. ... I really don't want to use sessions or cookies as this is just ... (php.general) - Re: Negligee at Abbey Rd.--Geoff Emerick reminisces
... posts in this thread indicating whether you agree or disagree with my ... reputation as a gentleman. ... So if a person repeatedly acts rude to you, and you defend yourself ... behaviour at 36 year old recording sessions." ... (rec.music.beatles) - Re: Post-back problem
... posts back. ... 3)User refreshes the browser. ... > Ravi wrote: ... >> in the Save button's click event I am saving the data into Database. ... (microsoft.public.dotnet.languages.csharp) - Re: tell a friend - prevent spam
... Sessions can be used as a none-cookie, and if the session only can be used to mail once, the spam-bot has to have more AI to fetch a new session and then post a new spam. ... Spammers usually uses proxies that for mircorosoft of some strange reason are open for all to use by default, this way it's the person running the proxy whom ip-address you will see in your logs and the spammer can use quite many proxies. ... If you queue, then you can compare how many similar posts there are or if one and the same e-mail address is overused (as sender or receiver), then you can just delete those entries. ... (alt.php) - Re: Clients and multiple accounts
... overall posts looks like you are putting the cart before the horse. ... invoices creates and entitlement for a certain total value of sessions vs. ... you probably need an InstancesOfAClientReceivingASession table (of course, ... (microsoft.public.access.tablesdbdesign) |
|