FSTUTS FORUMERS
Dont forget to join!

Please Read the forum rules and regulations before posting^_^

Thank You!

Join the forum, it's quick and easy

FSTUTS FORUMERS
Dont forget to join!

Please Read the forum rules and regulations before posting^_^

Thank You!
FSTUTS FORUMERS
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to Put Field with radio button in your HTML

2 posters

Go down

How to Put Field with radio button in your HTML Empty How to Put Field with radio button in your HTML

Post by Psycho Dancer Sun Jun 14, 2009 6:41 pm

Code:
<form method=post action="Churva.com">
<center>
Select an option:
<select>
<option >option 1</option>
<option selected>option 2</option>
<option>option 3</option>
<option>option 4</option>
<option>option 5</option>
<option>option 6</option>
</select><br>
<input type="Submit" value="Submit"></center>
</form>

Preview:



Select an option:



Psycho Dancer
Psycho Dancer
MOD
MOD

Posts : 166
Reputation : 45
Join date : 2009-05-27
Age : 34
Location : Binangonan Rizal

http://www.friendster.com/psychodancer

Back to top Go down

How to Put Field with radio button in your HTML Empty Re: How to Put Field with radio button in your HTML

Post by mrs3m0 Sat Jun 27, 2009 12:41 am

Hi, just want to clarify something. Your code is correct but you have a wrong title.
Your actually displaying a form with a dropdown list box and a submit button.

Here's how to create a form with a radio button and submit button.

Code:


<form method=post action="Churva.com">
<center>
        <input type='radio'  value='1' name='option'>
        <label>Option 1</label><br/> 
        <input type='radio' value='2' name='option'>
        <label>Option 2</label><br/> 
        <input type='radio'  value='3' name='option'>
        <label>Option 3</label><br/> 
        <input type='radio'  value='4' name='option'>
        <label>Option 4</label><br/>
        <input type='radio'  value='5' name='option'>
        <label>Option 5</label><br/>
        <input type='radio' checked  value='6' name='option'>
        <label>Option 6</label><br/>

<input type="Submit" value="Submit"></center>
</form>

Preview:

























This is a label displaying the word "Option 6" w/ a line break
Code:
 <label>Option 6</label><br/>

And this is the radio button
Code:
 <input type='radio' checked  value='6' name='option'>
 

Preview:

This is a label displaying the word "Option 6" w/ a line break:




And this is the radio button:

mrs3m0
FTTF Tutor
FTTF Tutor

Posts : 10
Reputation : 2
Join date : 2009-06-10

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum