If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Redirect on submit based on poll selection  XML
Forum Index » Support Forum
Author Message
ElektraAssassin
Newbie

Joined: 04/04/2010 14:20:56
Messages: 3
Offline

Hi there,

Totally new to PHP so go easy on me!

After hitting the submit button, is there a way to redirect the user to a page determined by the specific radio button that was selected?

So if a user votes for Company A, they are directed to companyA.html when they submit.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

You would have to look at their chosen option then use header("Location: http://whatever");

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
ElektraAssassin
Newbie

Joined: 04/04/2010 14:20:56
Messages: 3
Offline

Thanks for that...but as I said, I'm new to PHP...so havne't a clue where to find what it is you've told me to go look at.....any further direction?

Many thanks.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4291
Location: Bristol, UK
Offline

All radio inputs have to be given the same name like name="whereTo" but individual values. You then use $_GET['whereTo'] to see which one they selected.

If you are learning you need to read w3schools.com

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum