I've just started learning php. I need help in preventing users to log in if one field is empty. here is my code advance thanks:
<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>
-reply by jecq














