Hey i'm working on a register form in html and php that send information of registration to Databases but the code won't work
Code:
<?php
$mysql_hostname = "***";
$mysql_username = "***";
$mysql_password = "****";
$mysql_database = "*****";
$db = mysql_connect ($mysql_hostname, &mysql_username, &mysql_password);
or die("404 xD");
mysql_select_db($mysql_database, &db) or die("error");
?>
Index:
Code:
<hmtl>
<head>
<?php
include('****.php')
$fullname = @&_POST['fullname'];
$username = @&_POST['username'];
$password = @&_POST['password'];
$Register = @&_POST['Register'];
if($Register)
{
$insert = mysql_query ("INSERT INTO users VALUES ('','$fullname','$username','$password')")
or die ("Error");
}
?>
<body>
<form method ="post">
Fullname:<input name="fullname" type="text"><br>
username:<input name="username" type="text"><br>
password:<input name="password" type="password"><br>
<input type="submit" name="Register" value="Submit">
</form>
</body>
</head></hmtl>
Please help me the information won't send to database