note 41732 added to ref.http

From: Date: Wed, 21 Apr 2004 07:55:41 +0000
Subject: note 41732 added to ref.http
Groups: php.notes 
Request: Send a blank email to php-notes+get-68411@lists.php.net to get a copy of this message
The method given below may not sometimes work. The following method has always worked with me: just put the following 3 lines in your PHP code ?> <body onload=setTimeout("location.href='$url'",$sec)> <?PHP -------?> $sec is the time in second after which the browser would automatically go to the url. Set it to 0 if you do not want to give any time. You can use this function on the events of various html/form objects (eg.-onclick for button).eg. <input type=button value="Go to Php.net" onclick=setTimeout("location.href='php.net'",0)> Use this to one step back <input type="button" value="Back" onclick=history.go(-1)> ---- Manual Page -- http://www.php.net/manual/en/ref.http.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41732 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41732&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41732&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#68411) next »