Re: Opening another page in code

From: Date: Wed, 25 Jul 2001 14:42:48 +0000
Subject: Re: Opening another page in code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59557@lists.php.net to get a copy of this message
>I just want to open another page, sending some parameters, at a point >in a script - without the user clicking on anything (I can do this in >a form - I want to do it WITHOUT the form). > >Like: if($test) { > GO_TO_PAGE (http://www.site.dom/page.php?id=838383); > } > >Except with code that actually works, of course. > >I tried "header (Location:...)" but got an error message that I can't >add to the headers. If you HAVE to output other stuff first, you can't send a header because as the name implies, a header should be at the top :-) You can either include something like the following in the HTML page <META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.htmlhelp.com/reference/html40/head/meta.html"> or do some weird javascript stuff with an OnLoad event or simply send header("Location: http://www.php.net/manual/en/function.header.php"); as the FIRST output of that page. mit freundlichen Gruessen / yours sincerely Gunther E. Biernat Web Application Engineer ______________________________________________________________ RealNetworks GmbH Tel.: +49-40-415204-24 Weidestraße 128 Fax.: +49-40-415204-11 22083 Hamburg Mail: GEBiernat@real.com Germany URL : http://de.real.com ______________________________________________________________

« previous php.general (#59557) next »