hi
I'm create a form and I connect it by database and when I submit the data the data is inserted correctly in the table ,but it's show me some wrings
this is HTML code
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<legend>
<form action="cccccccccc.php" method="post">
<label>user name
<input type="text" name="uname">
</label>
<label>pasword
<input type="password"name="pass">
</label>
<input type="submit">
</form>
</legend>
</body>
</html>
and this is php code
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
mysql_connect("localhost","root","")or die (mysql_error());
mysql_select_db("abubakerdb") or die (mysql_error());
$user=$_POST['uname'];
$pass=$_POST['pass'];
$query = mysql_query("insert into user_name (name , password)values('$user','$pass')")or die (mysql_error());
if($query)
{
echo $user ."is added";
}
?>
</body>
</html>