Location: PHPKode > projects > Kudos > nirap/points.php

$Employee = $_POST['employee'];
$Group = $_POST['group'];
$Category = $_POST['category'];
$Value = $_POST['value'];
$Reason = $_POST['reason'];

$EmployeeChunks = explode(" ", $Employee);
$FirstName = $EmployeeChunks[0];
$LastName = $EmployeeChunks[1];
$GetEmpID_query = mysql_query("Select EmpID from Employee where LastName ='$LastName' and FirstName ='$FirstName'", $kudos) or die(mysql_error());
$EmpID = mysql_result($GetEmpID_query, 0);
$Insert_History = mysql_query("Insert into History values (null,'$EmpID','raalexan', $Value, $Category, $Group,'$Reason', 'datetime')", $kudos) or die(mysql_error());


<!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
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">
  <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" />
<div id="wrapper">
	<?php include ("includes/header_nav.html"); ?>
	<!-- end menu -->
	<div id="page">
		<div id="content">
			<h1 class="title">Title</h1>
			  <?php echo $Category ?> Points Awarded to <?php echo $FirstName ?>  <?php echo $LastName ?> in the amount of <?php echo $Value ?> <?php $Group ?> <?php $Reason ?>
              <h2><u><strong>Title 2</strong></u></h2>

<?php echo $CategoryID['CatID']; ?><br>
<?php echo $GroupID['GroupID'];?><br>
<?php echo $EmpID['EmpID']; ?></p>
		<!-- end content -->
		<div id="sidebar">
			<li id="submenu"> 
				<h2>Side Title</h2> 
				  <p>Text goes here</p>
		<div id="sidebar">
			<li id="submenu">
				<h2>Side Title 2</h2>
				  <p>Text goes here</p>
		<!-- end sidebar -->
		<div style="clear: both;">&nbsp;</div>
	<!-- end page -->
	<div id="footer">
		<p id="legal">Copyright &copy; 2008 National Instruments. All Rights Reserved.</p>
	<!-- end footer -->
<!-- end wrapper -->
<!--Template Copyright &copy; 2007 The Island. All Rights Reserved. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a> -->
Return current item: Kudos