ببخشین من این کد رو نوشتم ولی وقتی از طریق فرم اطلاعات رو پر میکنم به جای اینکه اطلاعاتم ارسال بشه اسم فیلدهام ارسال میشه؟چرا؟
<?php
$db=mysqli_connect('localhost','root','')
or die(mysqli_connect_error());
mysqli_select_db($db,'db_tamrin')
or die(mysqli_error($db));
mysqli_query($db,"SET NAME'UTF8'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
if(isset($_POST['btn_submit']))
{
$username=$_POST['username'];
$password=$_POST['password'];
$email=$_POST['email'];
$q="INSERT INTO `tbl_karbar` VALUES('NULL','karbar_username','karbar_password','karbar_email')";
mysqli_query($db,$q);
$row= mysqli_insert_id($db);
if($row > 0 )
{
print "رکورد ثبت شده است";
}
else
{
print "رکوردی ثبت نشده است";
}
}
?>
<br/><br/>
<form method="post" action="">
USERNAME: <input type="text" name="username" />
<br/><br/>
PASSWORD: <input type="password" name="password" />
<br/><br/>
E-mail:<input type="text" name="email" />
<input type="submit" name="btn_submit" value="ارسال" />
</form>