Google News
logo
PHP Forms
The forms are mainly used to dynamic websites and web applications etc. PHP Forms are a document that containing blank fields, that the user can fill the data or user can select the data. Basically  the data will be stored in the data base.

Different Types of the forms are following :
  • Form Handling
  • Form Validation
  • Form Required
Basic Forms Example :
<!DOCTYPE html>
<html>
<head>
	<title>PHP Basic Forms</title>
</head>
<style type="text/css">
	.basic_form{ padding:5px 10px; border-radius:2px; margin:10px 0px 5px;}
	.cus_btn{ padding:6px 15px; background:#0099da; color:#FFF;}
	.cus_btn_1{ padding:6px 15px; background:#F30; color:#FFF;}
</style>
<body>

<form action="" method="post">
	
    <input type="text" name="first_name" class="basic_form" placeholder="First Name" /><br />
    <input type="text" name="last_name" class="basic_form" placeholder="Last Name" /><br />
    <input type="email" name="email_id" class="basic_form" placeholder="example@gmail.com" /><br />
    <input type="number" name="mobile" class="basic_form" placeholder="996X666X68" /><br />
    <textarea rows="3" cols="40" name="message" class="basic_form" placeholder="Message"></textarea><br />
    <input type="submit" value="SUBMIT" class="cus_btn" />
    <input type="reset" value="CLEAR" class="cus_btn_1" />
    
</form>

</body>
</html>
Output :