Reply to Re: Refresh Problems

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация