Re: [PHP] How can I redirect to another php page
header("location: nextpage.php"); the above must be sent before any other text is output - Original Message - From: "Teo Petralia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 2:46 PM Subject: [PHP] How can I redirect to another php page Hi All! I would like to redirect the user to another php page accordingly to his/her chosen options, example: if ($Color == "Yellow") { go to page else if ($Color == "Green") go to page } Does anyone knows how to achieve the goal?? Thanks Teo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How can I redirect to another php page
You could use an include statement in one of two ways. 1) you can just include the page that you want to show, however the url doesn't change it will still be select.php 2) if you want to sent them to yellow.php or green.php you could include an html page that had a meta-refresh in it set for 0 seconds to move them to the seperate pages. -Original Message- From: Teo Petralia <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Thu, 9 Jan 2003 09:46:30 +1300 Subject: [PHP] How can I redirect to another php page > Hi All! > I would like to redirect the user to another php page accordingly to > his/her chosen options, example: > if ($Color == "Yellow") { > go to page > else if ($Color == "Green") > go to page > } > > Does anyone knows how to achieve the goal?? > > Thanks > > Teo > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How can I redirect to another php page
http://groups.google.com/groups?num=30&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&; q=url+redirect+php -Kevin - Original Message - From: "Teo Petralia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 08, 2003 1:46 PM Subject: [PHP] How can I redirect to another php page > Hi All! > I would like to redirect the user to another php page accordingly to > his/her chosen options, example: > if ($Color == "Yellow") { > go to page > else if ($Color == "Green") > go to page > } > > Does anyone knows how to achieve the goal?? > > Thanks > > Teo > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can I redirect to another php page
Hi All! I would like to redirect the user to another php page accordingly to his/her chosen options, example: if ($Color == "Yellow") { go to page else if ($Color == "Green") go to page } Does anyone knows how to achieve the goal?? Thanks Teo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php