Html4newbies
Put your hands into html and php
Home
Privacy
About
Contact

Hosting Links
Hosting
Free Php Snippets
Php Snippets 1
Php Snippets 2
Forms


Example of forms

<form>
First name: 
<input type="text" name="firstname">
<br> 
Last name: 
<input type="text" name="lastname">
</form> 

Example 1

First name:
Last name:

Example form 2

<form>
<input type="radio" name="parent" value="mom"> Mom
<br> 
<input type="radio" name="parent" value="dad"> Dad
</form> 

Example 2

Mom
Dad

Example form 3

<form>
I live with Mom
<input type="checkbox" name="parent" value="mom">
<br> 
I live with Dad
<input type="checkbox" name="parent" value="dad">
</form> 

Example 3

I live with Mom
I live with Dad

Example form 4

<form name="input" action="formaction.php"
method="post">
Username: 
<input type="text" name="user">
<input type="submit" value="Submit">
</form> 

Example 4

Username:

Example form 5

<form name="input" action="formaction.php"
method="post">
Username: 
<input type="text" name="user">
<br> 
Lives with:
<select name="lives">
<option value="mom">mom</option>
<option value="dad">dad</option>
<option value="sister">sister</option>
<option value="brother">brother</option>
</select>
<br> 
<textarea rows="10" cols="30">
My story
</textarea>
<br> 
<input type="submit" value="Submit">
</form> 

Example 5

Username:
Lives with:



Copyright © 2002-2017 Html4newbies - HarlandScripts.com NetWork
Parse error: syntax error, unexpected '*' in /home4/rant2012/public_html/html4newbies.com/stats.php on line 28