SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    AdSpeed.com Son Nguyen's Avatar
    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

  2. #2
    Not Bad, eh? Justin Sampson's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •