Guest User

Untitled

a guest
Jan 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language="javascript" type="text/javascript">
  2.      
  3.      function validar() {
  4.              var form=document.form;
  5.      
  6.      if(form.code.value==
  7.         <?php
  8.         $sql="select * from usuarios
  9.                 where
  10.                 code=''
  11.                 ";
  12.         $res=mysql_query($sql,$con);
  13.         echo $res;
  14.         ?>) {
  15.                  alert ("Aun no ingresa su codigo");
  16.                  form.code.value="";
  17.                  form.code.focus();
  18.                  return false;
  19.              }
  20.              
  21.      }
  22. </script>
Add Comment
Please, Sign In to add comment