Here is
$location = "http://www.php.net/";
header ("Location: $location");
Using this istruction take a look if header was already sent in previous
code of your page ...
Have fun :)
Gianni
Robert Maccombe wrote:
>
> Hi, how do I redirect to a different URL, e.g. as a result of an IF
> condition being true. I'm basically looking for a PHP version of the ASP -
> Response.Redirect("/otherpage.htm")
--
-----------------------------------------------------------
Dott. Gianni Del Papa [EMAIL PROTECTED]
[EMAIL PROTECTED]
Internet Dept. Manager
ISA SpA
L.go Garbini 8, I-01100 VITERBO - ITALY
Phone +39 0761 277 1
Extension +39 0761 277 23
Fax +39 0761 354050 http://www.isa.it/
-----------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]