Jump to content

Help with webpage data re-submitting


sazzie

Recommended Posts

after the post, do a header() redirect...my pages usually look like this:

 

<?php
  if($_SERVER['REQUEST_METHOD'] == 'POST'){
    //Process form here

    //Send the page back to itself, without the POST
    header('Location: '.$_SERVER['PHP_SELF']);
    exit;
  }
?>
<html>
  <body>
    <form action="" method="POST">
      FORM STUFF HERE
    </form>
  </body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.