<html>
<head>
</head>
<body style="background:#888; margin-left:250px;">
<div id="top" style="background:url(birds.jpg) no-repeat; width:1000px; height:180px; ">
</div>
<form action="" method="post">
<table style="margin-left:50px;">
<tr>
<td>NAME</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>AGE</td>
<td><input type="text" name="age"></td>
</tr>
<tr>
<td>GENDER</td>
<td><select name="gender" style="width:145px;">
<option value="0">----------------------------</option>
<option value="male">Male</option>
<option value="female">Female</option>
</select></td>
</tr>
<tr>
<td>MARK</td>
<td><input type="text" name="mark"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="sub" name="Insert"></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['sub']))
{
require("db.class.php");
$obj=new db("localhost","root","","test");
$name=$_POST['name'];
$age=$_POST['age'];
$gender=$_POST['gender'];
$mark=$_POST['mark'];
$val=array("$name","$age","$gender","$mark");
$tab="det";
$obj->insert($field,$val,$tab);
}
?>
<div style="background:#FFF; width:400px; padding-left:20px;">
<h3>Read Me</h3>
Best to Use: WAMP,LAMP
<ol>
<li>Create Database NAME - test</li>
<li>import tables file name - test.sql</li>
<li>copy this folder to WWW in WAMP or LAMP</li>
<li>Run it in Browser</li>
<li>Its Work!!!!!!!!!</li>
</ol>
<H4>Contact : sibiraj2007@gmail.com</H4>
</div>
</body>
</html>
|