How would I go around redirecting a user to another page using php?
Thanx
Ryan Lahay
| SitePoint Sponsor |




How would I go around redirecting a user to another page using php?
Thanx
Ryan Lahay
PHP is a server side technology - not a client side technology.
However you can do it like this:
Code:if (condition){ header("Location: http://www.yoursite.com/yourpage.html"); }
Chris Beasley - I publish content and ecommerce sites.
Featured Article: Free Comprehensive SEO Guide
My Guide to Building a Successful Website
My Blog|My Webmaster Forums

If you use header, make sure you don't have any php/html output (say from an include file etc) before making the call to header. If you have already output some text, you could try using a javascript redirect.
Bookmarks