My PHP page inserts blank fields into my database. I am using multiple forms to get my information and the database is still receiving and displaying blank data. Please can some one help.
My code for the PHP is:
<div id="User_username_input">
<div id="User_username_inputleft"></div>
<div id="User_username_inputmiddle">
<form action='VerifyLogin.php' method='post'>
<input type="text" name="username" id="url" value="User Name" onclick="this.value = ''">
<img id="User_url_user" src="./images/mailicon.png" alt="">
</form>
</div>
<div id="User_username_inputright"></div>
</div>
<div id="submit">
<form action='VerifyLogin.php' method='post'>
<input type="image" src="./images/submit_hover.png" id="submit1" value="fign In">
<input type="image" src="./images/submit.png" id="submit2" value="Sign In">
</form>
</div>
The page that post this data to the database is shown below:
<?php
include("verifyconect.php");
$username = $_POST['username'];
$email = $_POST['email'];
$password = $_POST['password'];
$confirm_password = $_POST['confirm_password'];
$insert = 'INSERT INTO verify (username, email, password, confirm_password) VALUES ("'.$username.'", "'.$email.'", "'.$password.'", "'.$confirm_password.'")';
mysql_query($insert);
echo "You have verified your details, Thank you";
?>
verifyconnect.php
links the information to the database, so the code for it is not important. Please any help would be appreciated.