<?
$host = "localhost";
$user = "root";
$password = "";
$db = "juasun";
mysql_connect($host,$user,$password,$db) or die (mysql_error());
mysql_select_db($db) or die (mysql_error());
$suzi = "insert into values ('".$_POST['user']."','".$_POST['pass']."') ";
$result=mysql_query($suzi);
if(!$result)
{
echo'you cant insert into the database....';
}
else
{
header('location:fomu2.php');
exit;
}
?>
<html>
<head>
<title>
</title>
</head>
<body>
<h2>firs t form</h2>
<form method = POST action="fomu1.php">
NAME:
<input name="user" type="text" maxlength="20" size="20" >
<br>
PASSWORD:
<input name="pass" type="password" maxlength="20" size="20" >
<input type="submit" value="save">
</form>
</body>
</html>