resubmit form after validation error

From: Date: Sat, 20 Jun 2009 19:55:18 +0000
Subject: resubmit form after validation error
Groups: php.general 
Request: Send a blank email to php-general+get-294367@lists.php.net to get a copy of this message
I'm having a bit of a time figuring out how to resubmit a form after obligatory field missing error. The problem is that the page is accessed from a search page href where the uri is like = file.php$=123. Since the method="post" action="file.php?=<?php echo $number; ?> does not work nor does PHP_SELF, I have set the action="otherfile.php". All is well, if all fields are properly entered, but if there is an error, how to resubmit the form for correction and resubmission without using js or functions or redoing it all from scratch? -- Hervé Kempf: "Pour sauver la planète, sortez du capitalisme." ------------------------------------------------------------- Phil Jourdan --- pj@ptahhotep.com http://www.ptahhotep.com http://www.chiccantine.com/andypantry.php

« previous php.general (#294367) next »