Location: PHPKode > projects > Kudos > nirap/verify.php
<?php

require_once('includes/kudos.php');
require_once('includes/ldap_auth.php');
require_once('includes/kudos_cookie.php');

/* check Kudos Database to see if user is already in system */
$login_query="SELECT * FROM Employee WHERE EmpID='$username'";
$login=mysql_query($login_query, $kudos) or die($login_query);
$row_login=mysql_fetch_assoc($login);
$count_login=mysql_num_rows($login);

// ($count_login == 1 &&

if ($count_login == 0 || $row_login['Validated']=="N") {
	// explode Common Name into first & last name pieces
	$empName = explode(" ", $fullname);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Title      : The Island
Version    : 1.0
Released   : 20070612
Description: A two-column, fixed-width, blue-themed template that can be easily converted into a blog theme.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>KUDOS!  :::  Employee Recognition System</title>
  <link href="style/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
	<?php include ("includes/header_nav.html"); ?>
	<!-- end menu -->
	<div id="page">
		<div id="content">
			<h1 class="title">Final Step: Verification</h1>
			  <form name="verify" action="verify_update.php" method="post">
			  <table>
			  	<tr>
					<td>Username:</td>
					<td><?php echo $username; ?></td>
			  	</tr>
				<tr>
					<td>First Name:</td>
					<td><input type="text" name="firstName" id="firstName" value="<?php echo $empName[0]; ?>"></td>
			  	</tr>
				<tr>
					<td>Last Name:</td>
					<td><input type="text" name="lastName" id="lastName" value="<?php echo $empName[1]; ?>"></td>
			  	</tr>
				<tr>
					<td>Email:</td>
					<td><input type="text" name="email" id="email" value="Your e-Mail"></td>
			  	</tr>
			  </table>
			  <input type="hidden" name="username" value="<?php echo $username; ?>" />
              <?php if ($count_login==0) { ?>
              <input type="hidden" name="exist" value="N" />
              <?php } else { ?>
              <input type="hidden" name="exist" value="Y" />
              <?php } ?>
			  <input type="submit" name="Submit" value="Verify" />
			  </form>
		</div>
		<!-- end content -->
		<div id="sidebar">
			<li id="submenu"> 
				<h2>Verfication</h2> 
				  <p>Before your account is created, you must first verify that your information is correct.  Correct any mistakes found and contact your company's support personnel to update your information within all systems.</p>
				  <br>
			</li>
		</div>
		<!-- end sidebar -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end page -->
	<div id="footer">
		<p id="legal">Copyright &copy; 2008 National Instruments. All Rights Reserved.</p>
		 
	</div>
	<!-- end footer -->
</div>
<!-- end wrapper -->
</body>
</html>
<!--Template Copyright &copy; 2007 The Island. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a> -->
<?php } else {
header('Location:welcome.php'); } ?>
Return current item: Kudos