SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: How to avoid double submission
-
Feb 17, 2001, 19:23 #1
- Join Date
- Aug 2000
- Location
- Silicon Valley
- Posts
- 2,241
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi,
I remember this was discussing long before, but how do you avoid the user to click reload and submit the setting again (say they edit some fields, then click submit, then reload)
Thanks- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy
-
Feb 17, 2001, 20:18 #2
- Join Date
- Aug 2000
- Location
- N.S., Canada
- Posts
- 487
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Oh, I remember that was my thread
It's unset($whatyourunseting);
For example
PHP Code:<?
if ("SUBMIT" == $submitarticle) {
$sql = "INSERT INTO articles SET article='$article'";
if (mysql_query($sql)) {
echo("<P>Your article has been added.</P>");
} else {
echo("<P>Error adding article: " .
mysql_error() . "</P>");
}
unset($submitarticle);
}
?>
Bookmarks