sorry i forgot mycode in the last reply had a third section
which redirected the page in case registration was sucessfull the last code also inserted the users data into my php databaseand looks like this
<?php>
}
else
{
$query ="INSERT INTO user_info(E-mail, password, firt_name, last_name, address, town, city, post_code, subjects)
VALUES ('". $_POST['E-mail']. "',(password('" . $_POST['password'} . "')), '" . $_POST['first_name'] .
"' , ' " . $_POST[['last_name'] . "' , ' " . $_POST['address'] . "' , ' " . $_POST['town'] . "' , ' " . $_POST['city'] .
"' , ' " . $_POST['post_code'] . "' , '" . implode(" , ", $_POST['subjects']) . "');";
$results = mysql_query($query) or die(mysql_error());
$_SESSION['user_logged'] = $_POST['E-mail'];
$_SESSION['user_password'] =$_POST['password'];
?>
Thank you, <?php echo $_POST['first_name'] . "," .$_POST['last_name'];?>
for regestering !</br>
<a href="/index-check.php" class="headings"> click hear</a> to continue.
hope this helps