I have this in side my two php files.
<?php
include 'dbh.php';
$first = $_POST['first']
$last = $_POST['last']
$uid = $_POST['uid']
$pwd = $_POST['pwd']
echo $first;
echo $last;
echo $uid;
echo $pwd;
?>
and
<?php
$conn = mysql_connect("localhost", "root", "", "login");
if (!$conn) {
die("Connection faile:".mysql_connect_error());
}
?>
and my html is down there. What could be problem in my connection to mysql? Can anyone help me? I don't have much experience with mysql but i think it should be ok.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action="http://localhost/signup.php" method="POST">
<input type="text" name="first" placeholder="name"><br>
<input type="text" name="last" placeholder="lastname"><br>
<input type="text" name="uid" placeholder="username"><br>
<input type="pasword" name="pwd" placeholder="pasword"><br>
<button type="submit">sign up</button>
</form>
</body>
</html>