NYCPHP Meetup

NYPHP.org

[nycphp-talk] html php form problem

Daniel Convissor danielc at analysisandsolutions.com
Thu Feb 24 15:00:15 EST 2005


On Thu, Feb 24, 2005 at 04:54:34PM -0300, Henry Ponce wrote:
> 
> I've been searching for the solution to my problem. I do not want a 
> form to be 
> resubmitted when i refresh a page.

That is not possible as far as I know.  To work around it, process the 
form in one script and then forward to another page once processing is 
done:

form.php
   <form action="process.php">

process.php
   <?php
   // validate and save info
   if (!$errors) {
      header('Location: http://host/thanks.php');
   }

thanks.php
   <h1>Thanks for your submission</h1>

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list