if(isset($_POST['tbnreg'])){
$name = $_POST['name'];
$fname = $_POST['fname'];
$email = $_POST['email'];
$password = $_POST['password'];
$number = $_POST['num'];
$sql1= "insert into rec (name,fathername,email,password,number) VALUES ('$name','$fname','$email','$password','$number')";
$result=mysql_query($sql1);
if ($result){
echo "good" ;
}else{
echo "error";
}
}
?>