Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
</head>
<body>
<form name="frm1" method="POST" action="stats_listing.asp" target="_self">
<SELECT NAME="facility" SIZE="1">
<OPTION>Select a facility</option>
<OPTION>CRJ</option>
<OPTION>ERJ</option>
<OPTION>NCRJ</option>
<OPTION>-------------------------------</option>
</SELECT>
<SELECT NAME="quarter" SIZE="1">
<OPTION>Select a Quarter</option>
<OPTION>Q1</option>
<OPTION>Q2</option>
<OPTION>Q3</option>
<OPTION>Q4</option>
</SELECT>
<input type="submit" value="Submit" name="Submit">
</form>
</body>
</html>
((((((( edits: to make sure the they have selected a facility and a quarter ))))))))
<html>
<head>
[b][blue] <script>
function SubmitOK()
{
var bOK = true;
// Here you insert some JavaScript to set
// bOK to false if the form elements are
// in an invalid state. For the same of
// demonstratin lets just hardcode it false!
bOK = false;
if (bOK == true)
{ return true;
}
else
{ alert('bad input');
return false;
}
}
</script> [/blue][/b]
</head>
<body>
<form name="frm1"
method="POST"
action="stats_listing.asp"
target="_self"
[b][blue]onSubmit="return SubmitOK();"[/blue][/b]>
<SELECT NAME="facility" SIZE="1">
<OPTION>Select a facility</option>
[...]
function validate_form( )
{
valid = true;
if (document.registration_form.fname.value == "" )
{
alert ( "Please fill in the 'First Name' box." );
valid = false;
}
if ( document.registration_form.lname.value == "" )
{
alert ( "Please fill in the 'Last Name' box." );
valid = false;
}
return valid;
}
if (document.frm1.facility.value == "Select a Facility" )
{
alert ( "Please fill in the 'Facility' box." );
bOK = false;
}
if (document.frm1.facility.value == "Select a Facility" )
{
alert ( "Please fill in the 'Facility' box." );
bOK = false;
}