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.
|
I think you would be better off using javascript
|
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. |
<?
// 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. |