<?php
include("db_connect.php");
// Connect to the database.
//If the form was submitted, process it.
//Pick up the values from the previous form
var_dump($_POST);
$CustName =$_POST['forename'];
$CustAddress =$_POST['surname'];
$CustTelNo =$_POST['maiden'];
$CustEmail =$_POST['email'];
if (@mysql_query("INSERT INTO Customer ('CustName','CustAddress','CustTelNo','CustEmail') values('$CustName','$CustAddress','$CustTelNo','$CustEmail')"))
{
echo 'The Customer has been added.';
}
else
{
echo 'The Customer could not be added because - ' . mysql_error();
}
?>