Re: redirecting the browser

From: Date: Wed, 24 Oct 2001 04:50:53 +0000
Subject: Re: redirecting the browser
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-72062@lists.php.net to get a copy of this message
<?php > Header("Location: anypage.php"); > exit(); //stopping the script > ?> No, he wants to launch a script after Javascript has processed. PHP is run on the server, Javascript on the client so Javascript has to run after PHp is finished. For him to launch a Javascript code, he can only do it by contacting the server and asking it for a page. The only way to do it with Javacript and PHP without changing the page you are on is to use an invisible frame, which he said he didn't want to. So, it is impossible with only Javascript and PHP. But he can do it with Java or Flash to talk to his server. But you must handle either pretty well to do it.

« previous php.general (#72062) next »