SIMPLE INSERT UPDATE DELETE
Create Connection
con.php
<?php
mysql_connect('localhost','root','');
mysql_select_db('test')
?>
==========================================
Form
index.php
<html> <head> <title>Insert form</title> </head> <body> <div class="display"> <form action="insert.php" method="post" name="insertform"> <p> <label for="name" id="preinput"> USER NAME : </label> <input type="text" name="username" required placeholder="Enter your name"> </p> <p> <label for="email" id="preinput"> EMAIL ID : </label> <input type="text" name="address" required placeholder="Enter your Email"> </p> <p> <label for="mobile" id="preinput"> MOBILE NUMBER : </label> <input type="text" name="usermobile" required placeholder="Enter your mobile numbe" /> </p> <p> <input type="submit" name="send" value="Submit"/> </p> </form> </div> <?php include('view.php'); ?> </body> </html>
=====================================================================
No comments:
Post a Comment