Hello i have wrote this script…
<?php
####################
# Register an user #
####################
# Verify given information :
if($f_name == "" || $l_name == "" || $username == "" || $password == "" || $password2 == "" || $email == "")
{
die("You didn't give all the informations!";
}
if($password != $password2)
{
die("The 2 passwords dont match !");
}
# [ CONNECT TO YOUR DATABASE ]
# Create a date TYPE :
$date = $year . "-" . $month . "-" . $day;
$query = mysql_query("INSERT INTO auth VALUES('', '$username', '$password', '$f_name', '$l_name', '$email', '$region', '$date', '$Gender')", $connection) or die("CANNOT ADD INFORMATION IN THE DATABASE");
?>
But how do i add in a bit for a male/female radio button, so it submits that 2? Please help! And also do i need my database details underwhere it says connect to database and if so how do i do this in this script aswell?
Thanks
Jason