[FX.php List] Retaining $_POST Requests in Form Redux

Jonathan Schwartz jonathan at eschwartz.com
Thu Mar 1 14:59:33 MST 2007


Hi Folks,

I would like to perform php error checking in the same page as the 
form, and then head of to the next page is no errors are found.  The 
problem is when I detour to top of the same page to do the php 
testing, instead of heading directly to the target page, aren't the 
$_POST variables lost?

Would like to do both.

J

PSEUDO CODE:
<? if(isset($_POST['summit']) {
	if(errorisnotfound) {
	header('Location:nextpage.php')
	}
	}
?>

<form action='thispage.php' type ="post'>
<input type="hidden" Name="2" value="this">
<input type="hidden" name="1" value="that">
<input type="submit" value="submit'>
</form>





-- 

Jonathan Schwartz
FileMaker 8 Certified  Developer
Associate Member, FileMaker Solutions Alliance
Schwartz & Company
jonathan at eschwartz.com
http://www.eschwartz.com
http://www.exit445.com
415-381-1852



More information about the FX.php_List mailing list