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?
Using a radio button and submit button as a link
Choose option, click 'Go', end up on desired page....?
Page 1 of 1
Using a radio button and submit button as a link Choose option, click 'Go', end up on desired page....?
#2
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.
I can knock out an example later. It's pretty simple.
Although I must warn, funky navigation isn't always best.
#3
Posted 30 January 2007 - 08:03 AM
TJSingleton, 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.
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.
#4
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.
#5
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
#6
Posted 30 January 2007 - 02:22 PM
If you want help with the javascript solution let me know, it's very easy.
#7
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.
#8
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
index.html (595bytes)
Number of downloads: 22
SIMPLE PHP
process.php (46bytes)
Number of downloads: 14
JAVASCRIPT
[Coming soon]
Example Form
index.html (595bytes)
Number of downloads: 22
SIMPLE PHP
process.php (46bytes)
Number of downloads: 14
JAVASCRIPT
[Coming soon]
#9
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
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.
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.
Share this topic:
Page 1 of 1


Help
This topic is locked

MultiQuote











