shadak99
10-08-2004, 06:05 AM
Hi,
I have a very simple question but have not done much website stuff before so could do with a hand.
I have a set of three horizontal radio buttone done in HTML which are then dubmitted using a submit button and I want to make the following happen.
when the left or right button is selected and the the submit button pressed the variable site is sumbitted with a value. When the middle button is selected the site variable is submitted with a value but also another variable is submitted.
As I said I have done very little website work before and so may not have explained this very well.
Here is the stage I am at:
I have created the radio buttons giving them all the same name (site) so that only one can be selected and giving each button a value. What I don't know is how I can mae the middle button also send a value for a different variable. I was hoping to do all of this with straight HTML but it's looking like I might have to use some simple javascript.
If anyone could help it would be most appreciated!
You'll have to excuse the spelling mistakes but i had a bit of a heavy night
I have a very simple question but have not done much website stuff before so could do with a hand.
I have a set of three horizontal radio buttone done in HTML which are then dubmitted using a submit button and I want to make the following happen.
when the left or right button is selected and the the submit button pressed the variable site is sumbitted with a value. When the middle button is selected the site variable is submitted with a value but also another variable is submitted.
As I said I have done very little website work before and so may not have explained this very well.
Here is the stage I am at:
I have created the radio buttons giving them all the same name (site) so that only one can be selected and giving each button a value. What I don't know is how I can mae the middle button also send a value for a different variable. I was hoping to do all of this with straight HTML but it's looking like I might have to use some simple javascript.
If anyone could help it would be most appreciated!
You'll have to excuse the spelling mistakes but i had a bit of a heavy night