FSTUTS FORUMERS
Dont forget to join!

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

Thank You!

How to Put Field with radio button in your HTML

View previous topic View next topic Go down

How to Put Field with radio button in your HTML

Post by Psycho Dancer on 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:




_________________
Just Give me Repu or Thanks by Clicking the + in my field if i help You ^^



I love my Haterz coZ thEy make me famous


avatar
Psycho Dancer
MOD
MOD

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

http://www.friendster.com/psychodancer

Back to top Go down

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

Post by mrs3m0 on 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

View previous topic View next topic Back to top

- Similar topics

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