<? $name=$_POST['name']; $time = date('l jS \of F Y h:i:s A'); $email=$_POST['email']; $location=$_POST['location']; $sex=$_POST['sex']; mysql_connect("quollcraft.net", "quollcr1_forum", "PASSWORD") or die(mysql_error()); mysql_select_db("quollcr1_hub") or die(mysql_error()); mysql_query("INSERT INTO `data` VALUES ('$Username', '$name', '$email', '$location', '$sex'. '$time')"); Print "Your information has been successfully added to the database."; ?>
<form action="process.php" method="post"> About: <input type="text" name="name"><br> Location: <input type="text" name = "email"><br> Interests: <input type="text" name = "location"><br> Gender: <input type="text" name = "sex"><br> <input type="submit" value="Submit"> </form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)