> I am converting an ASP page to PHP and have difficulties in using PHP
> since
> I am new to it. I have an ASP code that would redirect page-viewer to
> respective page base on the input entered by viewer. How do I do this
> using
> PHP? Also, in ASP, there are features like Server.Transfer and
> Server.Execute that transfer control to another page.. Please advice
and
> thanks in advance.

You'll need to use the header() function.

Header("Location: http://www.domain.com/file.php";);

You must call this before any output to the browser or use output
buffering. More information is available in the manual.

www.php.net/header

More than likely the ASP equivalents were wrappers to this header call.

---John Holmes...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to