PDA

Click to See Complete Forum and Search --> : HTML Checkboxes


compuGEEK
Jun 13th, 2002, 01:35 PM
Hi -

I don't get to work with forms too often but here's my question:

I need to have 4 checkboxes on a HTML form. The last checkbox should also include a text box to be able to type in it. How do I do this?

For Example:

(checkbox) Option 1
(checkbox) Option 2
(checkbox) Option 3
(checkbox) Option 4, please explain: _________________

The please explain should be a text box.

Any and all help is greatly appreciated!!

CG

cpradio
Jun 13th, 2002, 03:28 PM
<form method="post" action="">
<input type="checkbox" name="check">Option 1<br>
<input type="checkbox" name="check">Option 2<br>
<input type="checkbox" name="check">Option 3<br>
<input type="checkbox" name="check">Option 4 <input type="text" name="explain">
</form>

Mark Sreeves
Jun 14th, 2002, 06:38 AM
Sounds to me like a job for radio buttons rather than check boxes


<form method="post" action="">
<input type="radio" name="opt1">Option 1<br>
<input type="radio" name="opt1">Option 2<br>
<input type="radio" name="opt1">Option 3<br>
<input type="radio" name="opt1">Option 4 Please explain:<input type="text" name="explain">
</form>

compuGEEK
Jun 14th, 2002, 08:58 AM
Thanks for replying both of you - No Mark, it has to be checkboxes as the user must be able to choose more than one option.

Thanks again!

CG