Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How you use Text Field,Radio Button and Checkbox in Form?
 We use above in the <input> tag of the form.

Text Field: We used Text fields when we want that user entered like letters, numbers etc. in a form.
Example:
<form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" />
User name: 
<input type="text" name="username">
<br>
Password: 
<input type="password" name="password">
</form>
Radio Buttons: We use Radio Buttons when we want that user select one of a limited number of choices.
Example:
<form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" />
<input type="radio" name="Gender" value="male"> Male
<br>
<input type="radio" name="Gender" value="female"> Female
</form>
Checkboxes: We use Checkboxes When we want that user can select one or more options of a limited number of choices.
Example:
<form><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" />
I have a computer:
<input type="checkbox" name="electronicdevice" value="Computer">
<br>
I have a TV: 
<input type="checkbox" name="electronicdevice" value="TV">
<br>
I have a AC: 
<input type="checkbox" name="electronicdevice" value="AC">
</form>