Radio Button Value

B

Burt Rosner

To Anyone,

I want to use the radio button so the user can select a
value, on a web page. I inserted three radio buttons.
Each with its' own value, e.i. 1,2,3.

Question.

Once the user selects one of the values, how can I
identify the value they selected?

Thank you in advance for your help.

Burt
 
B

Burt Rosner

Thank you for your answer.

Burt
-----Original Message-----
your coding should contain a value that will show up in
the reply email, as in this example.

<p><font face="Verdana">
<input type="radio" name="attendance" value="5 to 8
times"><font size="2">5 to 8 times a year

.
 
G

Guest

I just reviewed your reply. Unfortunately it did not
answer my questions. I know how to give the radio button
a value. What I need to know is how do I determine which
one of the three radio buttons the user selected.
 
S

Sparky Polastri

Radio buttons always come in groups. Each group has two or more radio
buttons in it. To designate a group, use the "Group Name" properties and
specify _exactly_ the same text in the field for all the buttons in the
group. Then, add options to the group by using the value (as the response)
and the group (to specify group).

Then, when a user selects one of the buttons in the group, you will get a
response back like this (note _without_ mention of the group name in the
group:

1_to_4:
5_to_8:
8_ormore: ON

Indicating that the user chose the option listed for "8 or more times". The
options that the user did not choose will simply be blank. The group name
is not mentioned in the results at all.

Also note, the names you are allowed to use in form fields are VERY
restrictive. Use numbers, letters, underscores ("_") ONLY. No spaces,
symbols, etc are allowed, as they all either mean something or will mess up
javascript or trunicate your results etc.
 
T

Thomas A. Rowe

Burt,

Based on your example, when a user select a button, the value of
"attendance" will be from the button they chose, as in "5 to 8 times"
--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
A

Andrew Murray

Burt Rosner said:
To Anyone,

I want to use the radio button so the user can select a
value, on a web page. I inserted three radio buttons.
Each with its' own value, e.i. 1,2,3.

Question.

Once the user selects one of the values, how can I
identify the value they selected?

Thank you in advance for your help.

Burt

<input type="radio" name="button" value="1">

you have to include the "name" parameter in all the radio buttons, and since only
one is selected in the web form, it will come up as either button: 1 or button: 2
or button: 3 in your emailed form message or your inputed database data or
whatever.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top