i have made a signup page and i am trying to save data from signup page to mysql data base
thats my code
signup.html
<form action="database.php" method="post"> <INPUT type="text" name="username" placeholder="User Name"/><BR><br> <INPUT type="text" name="email" placeholder="Email ID"/><BR><br> <INPUT type="PASSWORD" name="password" placeholder="Password"/><BR><br> <INPUT type="text" name="country" placeholder="Country"/><BR><br> <input type="submit"/>
database.php
<?php
$username=$_POST["username"];
$password=$_POST["password"];
$email=$_POST["email"];
$country=$_POST["country"];
$con=mysql_connect("localhost","root","");
mysql_select_db("signup",$con);
mysql_query("insert into user(username,password,country,email) values('$username','$password','$country','$email')");
mysql_close($con);
?>
i am trying to store data but data is not being stored in the database

New Topic/Question
Reply



MultiQuote




|