[SOLVED] Different "Thank You" pages based on drop down value??

This is a discussion on "[SOLVED] Different "Thank You" pages based on drop down value??" within the PHP Forum section. This forum, and the thread "[SOLVED] Different "Thank You" pages based on drop down value?? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 2nd, 2007, 03:57
New Member
Join Date: Dec 2007
Location: austin
Age: 21
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] Different "Thank You" pages based on drop down value??

Hi- I'm not sure if this belongs in the PHP forum or elsewhere, so I apologize if I'm in the wrong place. I'm wondering if there is a way to display different Thank You pages depending on what the user selects from a drop down menu. Any suggestions are greatly appreciated!!
Reply With Quote

  #2 (permalink)  
Old Dec 2nd, 2007, 06:17
JustinStudios's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 406
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JustinStudios
Re: Different "Thank You" pages based on drop down value??

Let's say you have 4 options on a drop down named ABC.
These 4 options are named for example {a,b,c,d}.
You can do this many ways and if you want completely different pages the easiest way is to add this to a header (above the <doctype and HTML tags>

Code: Select all
<?PHP
if($_POST[ABC] == "a"){
header( 'Location: MyPageName.php' );}
if($_POST[ABC] == "b"){
header( 'Location: SecondPageName.php' );}
if($_POST[ABC] == "c"){
header( 'Location: ThirdPageName.php' );}
if($_POST[ABC] == "d"){
header( 'Location: FourthPageName.php' );}
?>
Reply With Quote
  #3 (permalink)  
Old Dec 2nd, 2007, 06:31
New Member
Join Date: Dec 2007
Location: austin
Age: 21
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Different "Thank You" pages based on drop down value??

Beautiful! Thank you!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a "tag" system to find relevant "related" pages MrQuestions PHP Forum 3 Mar 20th, 2008 23:06
[SOLVED] Show "Image" Depends On User "Status"? Monie Classic ASP 6 Oct 16th, 2007 01:22
? IS "meta name="robots" content="?" necessary in pages ? Love2Java Starting Out 6 Aug 8th, 2007 13:48
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09
<option value="yes" class="x"> problem in Firefox mameha1977 Web Page Design 1 Jun 21st, 2006 11:20


All times are GMT. The time now is 22:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43