Code:
<html>
<head></head>
<body><form method="post" action="register.php">



Name: <input type="text" name="name">         <br>

Age:</td><td> <input type="text" name="age">  <br>

Country: </td><td><input type="text" name="country">  <br>

Email: </td><td><input type="text" name="email"> <br>

Username: <input type="text" name="username">             <br>

Password:</td><td> <input type="text" name="password">   <br>

Gender: </td><td><input type="text" name="gender"> <br>




<input type="Submit" name="submit" value="Registrer"><br>
</form>

<?
IF ("$submit") {

$host = "*";
$user = "*";
$pass = "*";

if (!$db = @mysql_connect("$host","$user", "$pass")) {
$db_error = "couldn't connect.";
do_error($db_error);
}


{mysql_pconnect ("$host","$user");
}
mysql_select_db("hacker");

$sql = "insert into user(name, age, country, email, username, password, gender) values('$name', '$age', '$country', '$email', '$username', '$password', '$gender')";


$result = mysql_query($sql);
$ID = mysql_insert_id();
Print("Konto opprettet!");
}
?>

</body>
</html>
This thingy dosen't seem to write to the database, but it does connect.
Any ideas?