|
-
Jun 13th, 2002, 01:35 PM
#1
Thread Starter
Hyperactive Member
HTML Checkboxes
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
-
Jun 13th, 2002, 03:28 PM
#2
Fanatic Member
Code:
<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>
-
Jun 14th, 2002, 06:38 AM
#3
Frenzied Member
Sounds to me like a job for radio buttons rather than check boxes
Code:
<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>
-
Jun 14th, 2002, 08:58 AM
#4
Thread Starter
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|