hello,
I have put this in my html form
</head>
<script language=“javascript”>
function docElem(elem){
return document.getElementById(elem);
}
function checkTerms(){
if (docElem("cbTerms").checked == false){
docElem("termsMsg").innerHTML = "You have to agree with the terms and conditions";
}else{
docElem("termsMsg").innerHTML = "";
docElem("frmTerms").submit();
}
}
</script>
<title>
<form name=“postanadd” method=“post” action=“handle_form.php” id=“frmTerms”><div id=“termsMsg”></div>
[COLOR=Red]
Is this correct?
and then.
[COLOR=Black]
<input type=“checkbox” name=“cbTerms” id=“cbTerms” value=“off”>
<input type=“submit” onclick=“checkTerms();” name=“formSubmit” value=“Submit” id=“Submit2”>
[/COLOR][/COLOR]
If the tems is not ticket i want to display a msg saying
[COLOR=Red]“You have to agree with the terms and conditions”[/COLOR]
within the form.
can someone please help.
balamberas@yahoo.com