<?php 
session_start();

$course="FRC Laundry Procedures";

include("config.ini");
$message = "Please Log In ";
$headers=0; 


if (isset($last4) && isset($lastname) && isset($firstname) && isset($course)) { 
    
    $link='http://sonocoweb.sontheimeroffshore.com/webtraining/update.php?course='.$course.'&date='. $date = date("Y-m-d H:i:s")."&firstname=".$firstname."&lastname=".$lastname."&last4=".$last4 ;
    header("Location:  $link");
    exit();

}

?>




<HTML><HEAD><TITLE>Login Page</TITLE></HEAD>
<body text="#000000" bgcolor="#cfb083">
<center>
<table width="600" cellspacing="0" cellpading="8">
 <tr>
    <td ALIGN="CENTER"><IMG SRC="http://www.sontheimeroffshore.com/Image1.gif" WIDTH=400 HEIGHT=120></td>
 <tr>
    <td align="CENTER" > <font size=5 face="Times"><b><i>SONOCO </i>online training</b></font></td>
</tr>
<tr>
   <td align=center colspan=2>
     <b><?php echo $message ?></b>
   </td>
</tr>
</table>
<form method=post action="<?php echo $PHP_SELF ?> ">
<table>
<br>
 <tr>
   <td>
     <b>Last 4 Numbers of Social Security #:</b>
   </td>
   <td>
     <input type="text" size=4 name="last4">
   </td>
 </tr>
 <tr>            
   <td align="right">
     <b>First Name:</b>
   </td>
   <td>
     <input type=text size=50 name="firstname">
   </td>
 </tr>

 <tr>            
   <td align="right">
     <b>Last Name:</b>
   </td>
   <td>
     <input type=text size=50 name="lastname">
   </td>
 </tr>

 <tr>            
   <td align="right">
     <b>Course:</b>
   </td>
   <td>
     <?=$course?>
   </td>
 </tr>


 <tr>
  <td></td>
   <td align="left">
      <input type=submit name="Submit" value="Submit">
   </td>
 </tr>
</table>
</form>
If you are having trouble with this login
<BR>
Please call our office at (985) 851-0727 
<BR>
<img src="http://www.sontheimeroffshore.com/flag-slow.gif" width=50 height=25 border=0 alt="">

</body>
</html>
