In my html file, I have a form:
<form method = "post" action="database.php">
<p>First Name: <input type="text" name="first" />
<p>Last Name: <input type="text" name="last" />
<p>Username: <input type="text" name="username" />
<p>Password: <input type="password" name="pass" />
<p>URL: <input type="text" name="address" />
<p><input type = "submit" value = "Submit" />
</form>
...and then in my database.php file,
$query = "insert into user values('".$first."','".$last."','".$username."','".$pass."','".$address."')";
OR
$query = "insert into user values ('$first','$last','$username','$pass','$address')"
when i use either of these 2 queries, my table gets updated with blank values. if i hardcode a value into one of the variables like $first="Bill" then that gets added into the database. So for some reason the form in the html document seems to be posting blank values to the php file. Any ideas why this would be happening ?