Mr_Floppy
08-22-2003, 04:12 PM
How can I redirect to another page?
Mr_Floppy
Mr_Floppy
|
Click to See Complete Forum and Search --> : PHP Redirect Mr_Floppy 08-22-2003, 04:12 PM How can I redirect to another page? Mr_Floppy Kr|Z 08-22-2003, 04:16 PM <?php header("Location: new_page.html"); ?> pyro 08-22-2003, 05:26 PM Note that when setting a header location, one is supposed to use an absolute URI: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 diamonds 08-24-2003, 06:31 PM I never do that, I always use ("folder/index.php"). It still works! brendandonhue 08-24-2003, 07:50 PM It may work, but it is not the proper way to do things. Pyro isn't asking you to walk on water, just to use absolute paths in your Location headers. pyro 08-24-2003, 10:07 PM I didn't say it wouldn't work, just that it is incorrect. Will this work in most browsers? <b>text<i>more text<b><i> Of course it will. Is it correct? Most definitly not... webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |