<?php 

session_start(); 



$client = $_SESSION['client_no'];

$f_name = $_POST['f_name'];

$l_name = $_POST['l_name'];

$m_name = $_POST['m_name']; 

if ($f_name=="" || $l_name=="" ) {

    $error = "First name or Last name column is empty!"; 

	header("Location:name.php?message=$error");

}else{

include("../base.php");

$query="UPDATE mayis SET first_name='$f_name',last_name='$l_name',middle_name='$m_name' WHERE client_no = '$client'";

mysql_query($query);

mysql_close();

}

if (!$_SESSION['unamename']) { 

    $error = "You are not logged in!"; 

	header("Location:../login.php?message=$error");

    exit(); 

} 

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html lang="en">



<head>

<title>Online  Banking &ndash; Change Account Name Settings</title>

<meta name="GENERATOR" content="Microsoft FrontPage 6.0">

<meta name="CODE_LANGUAGE" content="C#">

<meta name="vs_defaultClientScript" content="JavaScript">

<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">

<link rel="stylesheet" type="text/css" media="aural" href="../includes/css/DPC_auralstyle.css">

<link rel="stylesheet" type="text/css" media="print" href="../includes/css/DPC_printstyle.css">

<link rel="stylesheet" type="text/css" media="screen" href="../includes/css/FA_style.css">

<script type="text/javascript" type="text/javascript" SRC="../js/common.js"></script>

<noscript></noscript>

</head>



<body topmargin="0"leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">



<table border="0" cellpadding="0" cellspacing="0" class="wrapperTable" width="100%">

	<tr>

		<td class="headerCell" valign="top" colspan="2">

		<div class="ddalink">

			<a accesskey="m" title="Skip to menu" class="ddalink" href="#menu">Skip 

			to menu </a>

			<a accesskey="c" title="Skip to content" class="ddalink" href="#content">

			Skip to content </a>

			<a id="AccessLink" accesskey="o" title="Turn on Accessibility Features " class="ddalink" href="#">

			Turn on Accessibility Features</a> </div>

		



<a name="top"></a>

<table class="header" border="0" cellpadding="0" cellspacing="0" width="100%">

	<tr>

		<td valign="bottom">

		<a accesskey="h" HREF="../default.php">

		<img src="../images/logo.png" width="200" height="120" alt="" border="0"></a></td>

		<!--td width="100%" valign="top"><a href="#content" accesskey="s"></a>

		<img border="0" src="/microsites/online_/images/spacer.gif" alt=" " width="1" height="60"></td-->

		<td valign="top">

		<img src="../images/topcontainerbg.gif" width="1140" height="120" alt="" border="0"></td>

	</tr>

</table>
<hr color="#003da6">





<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">

  <tr>

  		<td class="option-bar-shadow-home" valign="top"><img border="0" SRC="../images/spacer.gif" alt=" " width="1" height="4"></td>

  </tr>

</table><br />

		<table cellspacing="0" cellpadding="0" border="0" width="100%" id="table3" class="intropara">

			<tr>

				<td rowspan="98" valign="top" width="10" bgcolor="#ffffff">

				</td>

				<td valign="top" width="11">

				<img SRC="../images/intro/tl.gif" width="7" height="6" alt=" " border="0"></td>

				<td rowspan="2" style="font-family:arial;font-size:12px;color:#003481;padding-left:3px;padding-top:3px;padding-bottom:3px">

				<strong>Change Settings</strong><br />

				</td>

				<td rowspan="2" valign="top" align="right">

				<img SRC="../images/intro/tr.gif" width="8" height="7" alt=" " border="0"></td>

				<td bgcolor="#ffffff" rowspan="2"></td>

			</tr>

			<tr>

				<td valign="top"></td>

			</tr>

			<tr>

				<td height="11" colspan="4" bgcolor="#ffffff"></td>

			</tr>

		</table>

		</td>

	</tr>

	<tr>

		<td class="menuCell" valign="top"><a id="menu" name="menu"></a>

		<table cellpadding="2" cellspacing="0" width="148">

			<tr>

				<td>

				<table class="mnu" cellspacing="0" cellpadding="0" border="0" style="width:100%;border-collapse:collapse;">

					<tr class="mnu0">

						<td colspan="2"><span class="mnu0">

						<a accesskey="1" title="Access Key = 1" class="mnu0" HREF="../accounts/1_0_Accounts_summary.php">

						Accounts Summary</a></span></td>

					</tr>

					<tr class="mnu0">

						<td colspan="2"><span class="mnu0">

						<a accesskey="2" title="Access Key = 2" class="mnu0" HREF="../statements/2_0_statements.php">

						<span>Statements</span></a></span></td>

					</tr>

					<tr class="mnu0">

						<td colspan="2"><span class="mnu0">

						<a accesskey="3" title="Access Key = 3" class="mnu0" HREF="../transfers/3_0_transfers.php">

						<span>Transfers</span></a></span></td>

					</tr>

					<tr class="mnu0open">

                      <td class="mnu0a">&nbsp;</td>

                      <td><span class="mnu0open"> <a accesskey="3" title="Access Key = 3" class="mnu0open" HREF="3_0_transfers.php"> <span>Change Settings </span></a></span></td>

				  </tr>

					<tr class="mnu1">

                      <td class="mnu1a"><img class="mnuB1" SRC="../images/mnu2on.gif" alt=" " align="AbsMiddle" border="0" / width="10" height="10"></td>

                      <td><span class="mnu1"> <a class="mnu1" HREF="greetings.php"><span>Change Greetings</span></a></span></td>

				  </tr>

					<tr class="mnu1">

                      <td class="mnu1a">&nbsp;</td>

                      <td><a class="mnu1" HREF="pin.php"><span>Change PIN</span></a></td>

				  </tr>

					<tr class="mnu1">

                      <td class="mnu1a"><img class="mnuB1" SRC="../images/mnu2on.gif" alt=" " align="AbsMiddle" border="0" / width="10" height="10"></td>

                      <td><span class="mnu1"> <a class="mnu1" HREF="pwd.php"><span>Change Memorable Password</span></a></span></td>

				  </tr>

					<tr class="mnu1current">

                      <td class="mnu1a">&nbsp;</td>

                      <td><span class="mnu1current">Change Account Names </span></td>

				  </tr>

					<tr class="mnu1">

                      <td class="mnu1a">&nbsp;</td>

                      <td><a class="mnu1" HREF="details.php"><span>Change Contact Details</span></a></td>

				  </tr>

					<tr class="mnu1">

                      <td class="mnu1a">&nbsp;</td>

                      <td><a class="mnu1" HREF="passport.php"><span>Upload Passport Photograph</span></a></td>

				  </tr>

					<tr class="mnu0">

						<td colspan="2"><span class="mnu0">

						<a accesskey="7" title="Access Key = 7" class="mnu0" HREF="../logoff/default.php">

						<span>Leave</span></a></span></td>

					</tr>

				</table>

				



<!--br>

<div class="altframe" style="width:148px;margin-right:0px;padding-right:0px;">

	<b>

	<h3><span id="ASBTHE" class="fauxh3">Apply Online</span></h3>

	</b>

	<table class="olalt-panel" border="0" padding="0">

		<tr class="mnu0">

			<td>

			<a class="applynow-link" href="/ri_01a.php?id=PERSONAL/LOANS/PERSONAL_LOAN">

			Apply for a loan</a></td>

		</tr>

		<tr class="mnu0">

			<td>

			<a class="applynow-link" href="/ri_01.php?id=PERSONAL/SAVINGS_INVESTMENTS">

			Apply for a savings account</a></td>

		</tr>

		<tr class="mnu0">

			<td>

			<a class="applynow-link" href="/ri_01.php?id=PERSONAL/CREDIT_CARDS">

			Apply for a credit card</a></td>

		</tr>

		<tr class="mnu0">

			<td>

			<a class="applynow-link" href="/ri_01.php?id=PERSONAL/MORTGAGES">Apply 

			for a mortgage</a></td>

		</tr>

		<tr class="mnu0">

			<td>

			<a class="applynow-link" href="/ri_01.php?id=PERSONAL/CURRENT_ACCOUNTS">

			Apply for a current account</a></td>

		</tr>

	</table>

</div-->

</td>

			</tr>

		</table>

		</td>

		<td style="width:100%" class="contentCell" valign="Top">

		<form action="pin_success.php" method="post" name="PageForm" id="PageForm" autocomplete="off">

			<input type="hidden" name="__VIEWSTATE" value="RmFET0ZuMUF2QmZqQXdBQkFBQUEvLy8vL3dFQUFBQUFBQUFBQmdFQUFBQU5jbVZ0YkhocFpuTjNjek13WXdzQUFRQUFBUC8vLy84QkFBQUFBQUFBQUFRQkFBQUFEMU41YzNSbGJTNUVZWFJsVkdsdFpRRUFBQUFGZEdsamEzTUFDZW9sbFcxV1Q4WUlDOTAwVktqUmNQMzJCRmY4MUtCQjF4M2doTEFYSW05a3JObnIrQ1dkYzhkNVJUUHJxeW5vNVk4OHJ1ekhmVEU4dE8vMEVlVHROT0lsbkdVTk50NHUzbEF5M3pnYWFLR2c5Y1g3bi93V003WTRYV2U5UE02YkVKY25YS1NhUUZsVEgrRTlybUczaWVOa2p1M1U0ZmlDQkxKN2pzb0NIbjJqc09JZ0ZGN1ZleUpid3VwOEd2d2hXQzNhT2VtSkpVL3AwVU03QzBIUFMyZmptQWtFYlZYUU1CZWE4NlhKbFZQMFB3WVNsM3JiRmpXYU14Wm1DUUJ0bUlmaGF1Sks5aENNMHZST1prQ0M0NzJ2bnJjK1BxZzZjdVFxbHF1bUcwR255MlZWTUZkTncrd0Y5SjlaaHdDSnF1L2xFeWRGUXZxbW5BPT1NKtOs9zQxw6zVLzP6yB/djtmjGg==" />

			<a name="content"></a>

			<h1 id="CS1BTHA">Your request has been successfully received </h1>

			<div id="CS1PFA" class="frame"><span class="entries3">Your Account Name(s) has been changed.<BR>

                <BR>

Next time you log on, your Account Name(s) would have changed to your new entries. <BR>

<BR>

Please select an option from the 

            left-hand menu to continue Internet  Banking.</span>

			  <p>&nbsp;</P> 

</div>

		</form>

		</td>

	</tr>

	<tr>

		<td colspan="2">

		



<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">

	<tr>

		<td>

		<img border="0" SRC="../images/spacer.gif" alt=" " width="1" height="5"></td>

	</tr>

	<tr>

		<td valign="top">

		<img border="0" SRC="../images/footer/left_botcorner.gif" alt=" " align="left" hspace="0" width="10" height="23"></td>

		<td width="100%" class="bgcolor-footer" valign="top">

		<script type="text/javascript" SRC="../../../includes/scripts/redsheriff.js" type="text/javascript"></script>

		<noscript>

		<img SRC="../../../../nielsen.natwest.com/cgi-bin/count@cid=ulster Bank" alt=" " width="1" height="1">

		</noscript>

		<img border="0" SRC="../images/spacer.gif" alt=" " width="1" height="5"></td>

		<td valign="top">

		<img border="0" SRC="../images/footer/right_botcorner.gif" align="right" alt=" " hspace="0" width="10" height="23"></td>

	</tr>

</table>

</td>

	</tr>

</table>



</body>



</html>
