Posted by John on 11/15/05 10:28
On 14 Nov 2005 04:56:30 -0800, "Gazornenplat" <ianbambury@gmail.com>
wrote:
><?php
>$page='page2.php'; // set page to anything you like via your lookup
>if(isset($_REQUEST['data']))
>{
> echo "<script>document.location.replace('$page');</script>";
> exit; // Stops further pointless processing
>}
>echo isset($_REQUEST['data']);
>?>
><html>
><head><title></title></head>
><body>
><form>
><input name="data" type="text">
><input type="submit">
></form>
></body>
></html>
Thanks for the suggestions and to Ian and Gazornenplat
document.replace worked perfectly.
Curious to know what this is doing differently to windows.location
though.
--
John
[Back to original message]
|