The forms I posted previously have now changed I created new forms under the names form 1 = input_form.php and form 2 = your_information.php this was a great help cheers think iv almost completed my first php form I have managed to capture the first question on the form "Name" only the rest don't seem to be capturing can anyone see the problem?
Form 1
<html>
<head>
<title>Your Details</title>
</head>
<body>
<form action="
http://www.freepensionreview.com/your_information.php" method="post">
Name:</br><input type="text" size="12" maxlength="12" name="name"><br />
Address:</br><textarea rows="4" cols="20" name="quote" wrap="physical"></textarea><br />
Date of Birth:</br><input type="text" size="12" maxlength="12" name="Date of Birth"><br />
National Insurance Number:</br><input type="text" size="12" maxlength="12" name="National Insurance Number"><br />
Policy Number:</br><input type="text" size="12" maxlength="12" name="Policy Number"><br />
Insurance Company:</br><input type="text" size="12" maxlength="12" name="Insurance Company"><br />
Add More Policy numbers and their company names:</br><textarea rows="5" cols="20" name="quote" wrap="physical"></textarea><br />
<input type="submit" value="submit" name="submit"><br />
</form><br />
Form 2
<?php
$Name = $_POST["name"];
$Address = $_POST["Address"];
$Date_of_Birth = $_POST[ "Date of Birth" ] ;
$National_Insurance_Number = $_POST["National Insurance Number"];
$Policy_Number = $_POST["Policy Number"];
$Insurance_Number = $_POST["Insurance Number"];
$Add_more_policy_numbers_and_their_company_names = $_POST["Add more policy numbers and their company names"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>
<html>
<head>
<title>Your Details</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
Name:</br><input type="text" size="12" maxlength="12" name="name"><br />
Address:</br><textarea rows="4" cols="20" name="quote" wrap="physical"></textarea><br />
Date of Birth:</br><input type="text" size="12" maxlength="12" name="Date of Birth"><br />
National Insurance Number:</br><input type="text" size="12" maxlength="12" name="National Insurance Number"><br />
Policy Number:</br><input type="text" size="12" maxlength="12" name="Policy Number"><br />
Insurance Company:</br><input type="text" size="12" maxlength="12" name="Insurance Company"><br />
Add More Policy numbers and their company names:</br><textarea rows="5" cols="20" name="quote" wrap="physical"></textarea><br />
<input type="submit" value="submit" name="submit">
</form>
<?
} else {
echo "Name, ".$Name. " .<br />";
echo "Address, ".$Address.".<br />";
echo "Date_of_Birth, ".$Date_of_Birth.".<br />";
echo "National_Insurance_Number, ".$National_Insurance_Number.".<br />";
echo "Policy_Number, ".$Policy_Number.".<br />";
echo "Insurance_Number, ".$Insurance_Number.".<br />";
echo "Add_more_policy_numbers_and_their_company_names, ".$Add_more_policy_numbers_and_their_company_names.".<br />";
}
?>
<h1><img src="final-logo.jpg" alt="final logo"/></h1>
<p>Thank you for completing our Free Review Form. We would be grateful if you could print & sign this declaration and return it to our Free Post address:</p>
<p>
I hereby confirm that I have appointed Bartholomew Hawkins Ltd of One Waterton Park, Bridgend, CF313PH as my financial advisors and they are to be the serving agents for the future in respect of my policies. Please confirm in writing that records have been amended to this effect and that all information associated agreements are transferred to them, if applicable.</p>
<p>Please sign...................................................................</p>