LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   loading html pages with php (https://www.linuxquestions.org/questions/programming-9/loading-html-pages-with-php-122156/)

BaudRacer 12-02-2003 10:52 PM

loading html pages with php
 
I want my php script to redirect the browser to an html page. I can't find anything in the books I have, or online about it.

bodhiseed 12-03-2003 02:34 AM

I think you would be better off using javascript

druuna 12-03-2003 02:36 AM

If you are talking about automatically redirecting to page X when loading page Y, this is not done by php but by html:

Redirecting using META TAGS
Put the code below between <head> and </head>

<meta http-equiv="refresh" content="0; url=new.html">

Rename new.html to the page u want it to go to
Edit the 0 to the time (in seconds) u want before it refresh.

Hope this helps.

deiussum 12-03-2003 08:34 AM

<?
// Note: This only works if you have NOT sent anything to the browser yet
header("Location: new.html")
?>


All times are GMT -5. The time now is 12:37 AM.