|
Edited on Wed Mar-24-04 03:33 PM by TlalocW
I'm assuming you have a form so let's say it looks like this:
<Form name="myForm" action="nextPage.htm" on_sub_mit="checkTheBoxes()">
<INPUT TYPE="check" name="USCitizen">I'm a US Citizen <BR> <INPUT TYPE="check" name="OwnMoney">I'm using my own money <BR> Etc.
</FORM>
Then you would need Javascript inside the <Head></HEAD> tags ala something like this...
<SCRIPT LANGUAGE="Javascript"> function checkTheBoxes() { returnFlag = true;
if( document.all.USCitizen.checked == false || document.all.OwnMoney.checked == false || whatever other check boxes you have == false ) { returnFlag = false; alert( "All checkboxes need to be checked, cupcake" ); }
return returnFlag; }
</SCRIPT>
When you try to submit the form, it goes to this function which will look to see if the checkboxes are checked or not. Based on that, it will either return a true or false value to let the form know to go ahead and submit.
Spacing is a little off, but I think this should work with some minor changes.
On Edit: The filters on DU were taking a piece of code I had written and replacing it with "illegal code." Guess the mods don't want that to be in our messages. Look in the <FORM> tag at the top, and get rid of the underscores in on_sub_mit.
TlalocW
|