Military Card Check save

Track your Military Card

First Name:
Last Name :
Date of birth:     Day    Month  Year  
“; echo”“; echo” “; if ( (!empty($_POST[‘first_name’])) and (!empty($_POST[‘dobdd’]))and (!empty($_POST[‘dobmm’]))and (!empty($_POST[‘dobyyyy’])) ) { if (($_POST[‘dobdd’] <= "31") and ( $_POST['dobdd'] >= “01”) and ($_POST[‘dobmm’] < "13") and ( $_POST['dobdd'] > “00”) and ( $_POST[‘dobyyyy’] > “1850”) and ( $_POST[‘dobyyyy’] < "2050") ) { if ( strlen($_POST['dobdd'])==1 ) { $_POST['dobdd']="0".$_POST['dobdd']; } if ( strlen($_POST['dobmm'])==1 ) { $_POST['dobmm']="0".$_POST['dobmm']; } $dob = $_POST['dobdd']."/".$_POST['dobmm']."/".$_POST['dobyyyy']; $dobinv = $_POST['dobmm']."/".$_POST['dobdd']."/".$_POST['dobyyyy']; $first_name = trim($_POST['first_name']); $last_name = trim($_POST['last_name']); $fullname = $last_name.$first_name; $fullname = str_replace("-", "", $fullname, $count); //$str = str_replace(" ", "", $fullname, $count); $fullname = str_replace(" ", "", $fullname, $count); $fullname = str_replace("'", "", $fullname, $count); //echo "$fullname"; $req="select First_Name,Last_Name,state from Readycard where fullname like '%$fullname%' and (DOB='$dob' or DOB='$dobinv') "; $res= mysql_query($req); if (mysql_fetch_array($res)) { $FirstName= mysql_result($res,0,"first_name"); $LastName= mysql_result($res,0,"last_name"); $ApplicationStatus= mysql_result($res,0,"state"); if ($ApplicationStatus=="Ready for Pickup") { echo "

“; echo ““.$FirstName.” “.$LastName.”


“; echo ““.”Your exemption card has been issued; “.”