Jump to content

Using a radio button and submit button as a link

Choose option, click 'Go', end up on desired page....?

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Using a radio button and submit button as a link Choose option, click 'Go', end up on desired page....? Rate Topic: -----

#1 User is offline   william 

  • SEO Specialist
  • Group: Members
  • Posts: 233
  • Joined: 13-October 06
  • Gender:Male
  • Location:Gloucestershire, UK
  • Interests:SEO, Web Design, PHP Development, Wordpress, Fireworks, Photoshop, EpiServer

Posted 30 January 2007 - 06:31 AM

As you may have guessed, all I'm trying to do is use a group of radio buttons as navigation :

The user chooses their desired option through the radio group, presses 'Submit', and the user is directed to the appropriate HTML page.

I've been scanning through my textbooks and Google, but cannot find a solution. I am now thinking this is probably going to take some javascript wizardry?

Can anyone help?
0

#2 User is offline   TJSingleton 

  • Allegedly Legendary
  • Group: Members
  • Posts: 517
  • Joined: 31-July 06
  • Location:Winder, GA

Posted 30 January 2007 - 07:45 AM

javascript or php, or both. I would be wary of a js only solution as if the browser doesn't have javascript then it is unusable.

I can knock out an example later. It's pretty simple.

Although I must warn, funky navigation isn't always best.
0

#3 User is offline   william 

  • SEO Specialist
  • Group: Members
  • Posts: 233
  • Joined: 13-October 06
  • Gender:Male
  • Location:Gloucestershire, UK
  • Interests:SEO, Web Design, PHP Development, Wordpress, Fireworks, Photoshop, EpiServer

Posted 30 January 2007 - 08:03 AM

View PostTJSingleton, on Jan 30 2007, 12:45 PM, said:

javascript or php, or both. I would be wary of a js only solution as if the browser doesn't have javascript then it is unusable.

I can knock out an example later. It's pretty simple.

Although I must warn, funky navigation isn't always best.


Cheers TJ.

The navigation isn't a major element of the site, just of one page, so I'm hoping it will work okay.
0

#4 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 30 January 2007 - 08:11 AM

I'm interested to have a look at this. Neat, no doubt, and as TJ said, slightly problematic, but still neat.
0

#5 User is offline   sypher 

  • the owner3r
  • Group: Administrators
  • Posts: 1,578
  • Joined: 04-April 06
  • Location:North Wales, UK
  • Interests:Art, Boxing, MMA, Graphic Design, Web Design etc. ;)

Posted 30 January 2007 - 12:00 PM

Yeh you would just make a php page which requests which button they selected then uses a header relocation to send them to the desired page. 5 min job :)
sypher design - North Wales Web Design | Latest Work: - Scala Cinema

CSS - Can't See Sh*t
0

#6 User is offline   Catalyst 

  • Codesmith
  • Group: Administrators
  • Posts: 1,049
  • Joined: 04-April 06
  • Gender:Male
  • Location:San Diego

Posted 30 January 2007 - 02:22 PM

If you want help with the javascript solution let me know, it's very easy.
0

#7 User is offline   TJSingleton 

  • Allegedly Legendary
  • Group: Members
  • Posts: 517
  • Joined: 31-July 06
  • Location:Winder, GA

Posted 31 January 2007 - 11:18 PM

I'll try to knock this out tonight. I've worked 13 and 15 hour days yesterday and today.
0

#8 User is offline   TJSingleton 

  • Allegedly Legendary
  • Group: Members
  • Posts: 517
  • Joined: 31-July 06
  • Location:Winder, GA

Posted 01 February 2007 - 12:08 AM

I'd beef up the php a lot to be more secure, but this shows you the concept. I'll get the javascript done soon.

Example Form
Attached File  index.html (595bytes)
Number of downloads: 22

SIMPLE PHP
Attached File  process.php (46bytes)
Number of downloads: 14

JAVASCRIPT
[Coming soon]
0

#9 User is offline   william 

  • SEO Specialist
  • Group: Members
  • Posts: 233
  • Joined: 13-October 06
  • Gender:Male
  • Location:Gloucestershire, UK
  • Interests:SEO, Web Design, PHP Development, Wordpress, Fireworks, Photoshop, EpiServer

Posted 01 February 2007 - 04:32 PM

TJ - you are a legend my friend - I cannot thank you enough for your kindness. If we ever meet, a beer or ten is on me :notworthy:

The whole solution works brilliantly with my own project, I will show you the results very soon.

It's moments/posts like this that make me appreciate this forum and you wonderful people even more.

:clapping:
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users