<?php
/// In order to use this script freely
/// you must leave the following copyright
/// information in this file:
/// Copyright 2006 www.turningturnip.co.uk
/// All rights reserved.

include("account/secure/db.php");
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$gender = $_POST['gender'];
$dob = $_POST['dob'];
$address = $_POST['address'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$password = $_POST['password'];
$country = $_POST['country'];
$state = $_POST['state'];
$city = $_POST['city'];
$zip = $_POST['zip'];
$next_of_kin_name = $_POST['next_of_kin_name'];
$next_of_kin_address = $_POST['next_of_kin_address'];
$next_of_kin_phone = $_POST['next_of_kin_phone'];

 
$query = "INSERT INTO acnt (id, first_name, last_name, gender, dob, address, phone, email, password, country, state, city, zip, next_of_kin_name, next_of_kin_address, next_of_kin_phone)
VALUES ('', '$first_name', '$last_name', '$gender', '$dob', '$address', '$phone', '$email', '$password', '$country', '$state', '$city', '$zip', '$next_of_kin_name', '$next_of_kin_address', '$next_of_kin_phone')";

$results = mysql_query($query);

if ($results)
{
$done = "Your application form for opening an account with Santander Corporate  Bank Service was successfully submitted. Hence, your request will now undergo verification and processing after which you will be contacted as soon as possible as regard to your account details. <br><br>Thanks you for choosing our  Bank";
}
mysql_close();

?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title></title>
<LINK href="images/style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style7 {color: #990000}
.style8 {color: #006633}
-->
</style>
</head>

<body topmargin="o" bottommargin="o">

<div align="center">
	<table border="0" width="800" cellspacing="0" cellpadding="0" id="table1" class="table">
		<tr>
			<td>
			<div align="center">
				<table border="0" width="800" cellspacing="0" cellpadding="0" id="table3" bgcolor="#FFFFFF">
					<tr>
					  <td bgcolor="#B9C6E6"><div align="center"><img src="../../rbs_logo.jpg" width="125" height="75" alt="" border="0"></div></td></tr>
			  </table>
			</div>
			</td>
		</tr>
		<tr>
			<td><hr color="#0F5584"></td>
		</tr>
		<tr>
			<td>
			<div align="center">
				<table border="0" width="800" id="table4" height="127">
					<tr>
						<td height="39">
						<h1 align="left">Account registration was successful</h1>
						<p align="left">&nbsp; </p></td>
					</tr>
					<tr>
						<td height="50"><form action="open_process.php" method="post" enctype="multipart/form-data" name="FormName" id="FormName">
                          <p align="center" class="style1"><b><span class="style7">
                            <?php if(isset($error)){ echo $error;}?>
                          </span> </b></p>
						  <p align="center" class="style1"><b> <span class="style8">
                            <?php if(isset($done)){ echo $done;}?>
                          </span></b></p>
						  </form>
						<p align="center">                        
						<p align="center">                        
						<p align="center">                        
						<p align="center"><a href="../../../../index.html"><strong>Go to Home</strong></a>                        
					  <p align="center"></td>
					</tr>
					<tr>
						<td height="30">
						  <p align="center">                          
						  <p align="center">                          
						  <p align="center"></td>
					</tr>
			  </table>
			</div>
			</td>
		</tr>
		<tr>
			<td>
			<div align="center">
				<table border="0" width="800" id="table5" height="29">
					<tr>
						<td class="footer">
						<p align="center"><font color="#FFFFFF">Copyright © 2010 Santander Corporate  Bank <b> </b>. All Rights Reserved</font></td>
					</tr>
				</table>
			</div>
			</td>
		</tr>
	</table>
</div>
</body>

</html>
