<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <? include("condbm.php"); $id_card=$_POST['id_card']; $tel_std=$_POST['tel_std']; if((empty($id_card))||(empty($tel_std))) { echo "<script> window.location='indexmain.php?f=ckregis'; </script> "; } $sqls1=mysql_query("SELECT * FROM sheeregis Where id_card ='".$id_card."'"); if(mysql_num_rows($sqls1)>=1) { $sqlfulls1=mysql_query("SELECT * FROM sheeregis Where id_card='".$id_card."' and tel_std='".$tel_std."'"); if(mysql_num_rows($sqlfulls1)>=1){ ?> <form name="frmMain" action="indexmain.php?f=reportstdregis" method="POST" > <input type="hidden" name="id_card" value="<?php echo $id_card ;?>" /> <input type="hidden" name="repxx" value="ckrepxx" /> </form> <script> document.getElementsByTagName("form")[0].submit(); </script> <? }else{ echo "<script>"; echo "alert(\"ตรวจสอบเบอร์โทร \");"; echo "window.history.back()"; echo "</script>"; } } else { echo "<script>"; echo "alert(\" ไม่พบข้อมูล \");"; echo "window.history.back()"; echo "</script>"; } ?> </body> </html>