- Code: Select all
<?php
mysql_connect('host', 'user', 'pass');
mysql_select_db(database);
$user = $_POST['user'];
$pass = $_POST['pass'];
$passconf = $_POST['passconf'];
$type = $_POST['type'];
$location = $_POST['location'];
$description = $_POST['description'];
mysql_query("INSERT INTO users VALUES ('$user','$pass','$passconf','$type','$location','$description'");
?>
It goes through but then i check the database and it wasn't submitted... Also after i get this code to submit do i go about extracting the values from the database and printing them on a page?

