[FX.php List] PHP Header vs. Javascript location.replace ?

Joel Shapiro jsfmp at earthlink.net
Wed Jul 19 16:37:41 MDT 2006


Last year at DevCon Lance Hallberg recommended using a javascript  
location.replace instead of php header (something about problems  
loading a header more than once?)

<script language="javascript">
	<!--
	location.replace("./Form2.php");
	-->
</script>

Any thoughts?

-Joel


On Jul 19, 2006, at 3:02 PM, Gjermund Gusland Thorsen wrote:

> after you have done your FMNew in CreateRecord.php
>
> And it returns errorCode == 0
>
> I believe you should do a
>
> header( "Location: ./Form2.php" );
> exit;



More information about the FX.php_List mailing list