Jump to content
xisto Community

Jecq

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. HI I need help in my code, How can i program my code that whenver field such as Agent or Supervisor or Station ID is not been type at, it will, not proceed to the whole program? Her is my code: <html> <head> <title>Cricket Notemaker - Developed by Application Development Group</title> <link rel="stylesheet" type="text/css" href="style.css"> <script TYPE="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') { agent = document.FORM.a.value; supervisor = document.FORM.s.value; station = document.FORM.t.value; href = mylink + "?a=" + agent + "&s=" + supervisor + "&t=" + station; } else href=mylink.href; window.open(href, windowname, 'width=245,height=720,scrollbars=no'); init(); return false; } function shutDown() { self.close(); } function init() { var timer = setInterval(shutDown, 1000); } //--> </SCRIPT> </head><body topmargin="0" leftmargin="0"> <br><br><br><br><br><br><br><br> <form action="" method="post" name="FORM"> <table border="1" cellpadding="5" cellspacing="0" align="center" bordercolor="#000080"> <tr><td> <table border="0" cellpadding="0" cellspacing="5" align="center"> <tr> <td colspan="2" align="center"><img src="logo_cricket.gif"></td> </tr> <tr> <td colspan="2" align="center" height="6"></td> </tr> <tr> <td class="black11" align="right">Agent ID :</td> <td class="black11" align="left"><input type="text" name="a" size="25" style="text-transform: capitalize"></td> </tr> <tr> <td class="black11" align="right">Supervisor ID :</td> <td class="black11" align="left"><input type="text" name="s" size="25" style="text-transform: capitalize"></td> </tr> <tr> <td class="black11" align="right">Station ID :</td> <td class="black11" align="left"><input type="text" name="t" size="25" style="text-transform: capitalize"></td> </tr> <tr> <td colspan="2" align="right"><input type="reset" value=" Reset "><input type="button" value=" Submit " onClick="return popup('notemaker.php', 'Notemaker')"> </td> </tr> </table> </td></tr></table> </form></body></html>
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.