Wrox Programmer Forums
|
BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5
This is the forum to discuss the Wrox book Beginning PHP4 by Wankyu Choi, Allan Kent, Chris Lea, Ganesh Prasad, Chris Ullman; ISBN: 9780764543647
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2004, 10:56 AM
Registered User
 
Join Date: Sep 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP and Page Redirection

I have a problem involving redirecting to another page based on the users choice.

Basically I have a page that contains PHP variables on it. These were posted to the page from a previous page. Depending on what the value of the variables, I want to redirect the user to another page.

Example:

$Enrol = "Yes";
$Accommodation = "No";
$Airport = "Yes"

$WebAddress = " ";
<?php if($Enrol == "Yes")
     {
       $WebAddress = "Http://www.Enrol.com";
     }
.
.
.
  <FORM ACTION=<?php $WebAddress>


So if $Enrol is set to "Yes", then I want to redirect the user to the EnrolPage.php. If not, redirect them to the other pages...

But this doesn't seem to work. Does anyone have any idea how I can overcome this problem.

Thanks,

joanncae.


 
Old May 21st, 2004, 11:07 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default


Read this article:
http://p2p.wrox.com/topic.asp?TOPIC_ID=11882

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirection From Admin page stonesbg ASP.NET 2.0 Basics 3 January 10th, 2007 05:06 PM
Duplicate database entry redirection error page EmWebs Dreamweaver (all versions) 3 December 29th, 2006 10:17 AM
Duplicate database entry redirection error page EmWebs Access ASP 0 December 27th, 2006 12:54 PM
passing value from Php to PHP page baby PHP How-To 3 March 31st, 2005 02:13 AM
Automatic redirection once page with SWF loaded Burton HTML Code Clinic 1 September 13th, 2003 06:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.