Here's what I do:

Insert their post into the database at the very top of the page.  Then use
php's header() function to forward them to another page after the post has
been put into the database.  This way, they can reload all they like because
they'll no longer be on the page that puts the post into the db.

Tyler

----- Original Message -----
From: "Nick Stuart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 9:13 AM
Subject: PHP Question


> Ok so this really doesnt have anything to do with MySQL but I thought this
> might be a good placeto ask.
> Ok heres the problem. I am constructing a Message Board with MySQL and php
> (was usingASP) and I dont want the user to reload/repost data. For
example, say the
> user goes to post amessage, after they hit the post button it takes them
to a temp page
> saying that there post wassuccesful with a link to go view the post. The
problem arises if some one
> decides to hit thereload button. Because of the way I have the posting
page setup it will
> reload the page and postthe message again! doh!
> Anyways, has anyone come up against a similar problem and found a
> way around it?
>
> Thanks in advance.
> -Nick
>
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to