Skip to content

Instantly share code, notes, and snippets.

@anta40
Created February 11, 2013 13:06
Show Gist options
  • Save anta40/4754318 to your computer and use it in GitHub Desktop.
Save anta40/4754318 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Registration Form</title>
</head>
<script language="javascript">
function isEmpty(){
if (document.forms['input_form'].imsi.value == "" || document.forms['input_form'].msisdn.value == "" || document.forms['input_form'].sdid.value == ""){
alert("All required values must be inputted.");
return false;
}
else return true;
}
</script>
<body>
<form name="input_form" action="register.php" method="post">
<center>
<br>
IMSI: <input type="text" name="imsi"><br>
MSISDN: <input type="text" name="msisdn"><br>
SDID: <input type="text" name="sdid"><br>
<br>
<input type="submit" onClick="return isEmpty();" value="Register">
</center>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment