I am trying to make a registration page on my website but after many frustrations, it still will not work. The message "Registered" appears above the registration form and it will not submit. I would deeply appreciate any help on this. Here is the code:
<?php
mysql_connect('localhost', 'root', "password") or die(mysql_error());
mysql_select_db('membership') or die(mysql_error());
if (isset($_POST['Submit'])) {
if (!$_POST['First_Name'] | !$_POST['Surname'] | !$_POST['Practice_Name'] | !$_POST['Address_1'] | !$_POST['Address_2'] | !$_POST['Postcode'] | !$_POST['Country'] | !$_POST['Email_Address'] | !$_POST['Tel_Number'] | !$_POST['Password'] | !$_POST['Confirm_Password'] ) {
die('You did not complete all of the required fields');
}
if ($_POST['Password'] != $_POST['Confirm_Password']) { die('Your passwords did not match. ');
}
$insert = "INSERT INTO registration (Title,First_Name,Surname,Practice_Name,Address_1, Address_2,Address_3,Postcode,Country,Email_Address ,Tel_Number,Fax_Number,Password,Comments)
VALUES ('".$_POST['Title']."', '".$_POST['First_Name']."', '".$_POST['Surname']."', '".$_POST['Practice_Name']."', '".$_POST['Address_1']."', '".$_POST['Address_2']."', '".$_POST['Address_3']."', '".$_POST['Postcode']."', '".$_POST['Country']."', '".$_POST['Email_Address']."', '".$_POST['Tel_Number']."', '".$_POST['Fax_Number']."', '".$_POST['Password']."', '".$_POST['Comments']."')";
$add_member = mysql_query($insert);
?>
<h1>Registered</h1>
<p>Thank you, you have registered - you may now login</a>.</p>
<?php
}
else
{
?>
<form action="process.php" method="post"
<table width="600" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="29%"><b>Title:</b></td>
<td width="71%"><select name="Title">
<option value="Mr.">Mr.</option>
<option value="Mrs.">Mrs.</option>
<option value="Ms.">Ms.</option>
<option value="Miss.">Miss.</option>
<option value="Dr.">Dr.</option>
</select></td>
</tr>
<tr>
<td width="29%" class="bodytext"><b>First Name:<span style="color:#B40404">*</span style="color:#B40404"></b></td>
<td width="71%"><input name="First_Name" type="text" id="First_Name" size="32"></td>
</tr>
<tr>
<td width="29%" class="bodytext"><b>Surname:<span style="color:#B40404">*</span style="color:#B40404"></b></td>
<td width="71%"><input name="Surname" type="text" id="Surname" size="32"></td>
</tr>
<tr>
<td width="29%" class="bodytext"><b>Practice Name:<span style="color:#B40404">*</span style="color:#B40404"></b></td>
<td width="71%"><input name="Practice_Name" type="text" id="Practice_Name" size="32"></td>
</tr>
<tr>
<td width="29%" class="bodytext"><b>Address 1:<span style="color:#B40404">*</span style="color:#B40404"></b></td>
<td width="71%"><input name="Address_1" type="text" id="Address_1" size="32"></td>
</tr>
<tr>
<td width="29%" class="bodytext"><b>Address 2:<span style="color:#B40404">*</span style="color:#B40404"></b></td>
<td width="71%"><input name="Address_2" type="text" id="Address_2" size="32"></td>
</tr>
<tr>
<td width="29%" class="bodytext"><b>Address 3:</b></td>
<td width="71%"><input name="Address_3" type="text" id="Address_3" size="32"></td>
</tr>
<tr>
<td width="29%" class="bodytext&qu