Forum Moderators: phranque

Message Too Old, No Replies

Radio Button Links

How to link to different pages using Radio Buttons

         

chill1010

11:16 pm on Feb 6, 2006 (gmt 0)

10+ Year Member



Hi All,

I am kind of new to HTML, so please bear with me. I want to use radio buttons to link to various pages. I have the GUI all done, all i need is to get the buttons to work (the hard part). I have 10 Radio Buttons, 1 Submit and 1 Clear Button. I want the user to be redirected to teh appropriate page based on the radio button selection. Any suggestions? Is it possible to do so just using php and forms, or do I have to write a script.
Thanks
J

Dijkgraaf

11:24 pm on Feb 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could either do it via PHP and forms, or have JavaScript do it.

But the questions is, why do you want to do it this way?
It is non-standard and could put some people off.
I also hope you realise that any crawler/spider/bot won't be able to navigate that way.

chill1010

7:46 pm on Feb 7, 2006 (gmt 0)

10+ Year Member



How will I do such a thing using PHP and forms?
I dont care about bots and spiders, the site is for a small business, and just wants to look different.
What do I pass to the php, because there are different web sites based on what is selected

chill1010

7:46 pm on Feb 7, 2006 (gmt 0)

10+ Year Member



How will I do such a thing using PHP and forms?
I dont care about bots and spiders, the site is for a small business, and just wants to look different.
What do I pass to the php, because there are different web sites based on what is selected

Dijkgraaf

9:26 pm on Feb 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Basically I'd have a page that you'd submit to, and then that page would check to see what the value the radio button submitted, and then issue a 301 Redirect to the correct page.

Animated

12:44 am on Feb 8, 2006 (gmt 0)

10+ Year Member



just do a <a href link to the page in html for the radio button no need for php