ok, basically i have a form, which is submitted. one of the fields in that form is
$age this is the age of the user, but they have to be above 12. If their not then i want a javascipt alert box to appear, and when they click ok for it to close. I have this, but it doesnt work
if ($age < 12 ){
<script language="javascript">
alert ("Windows Closing because you are to young or old to fill out the form.")
window.close()
</script>
}
Any help would be much appreciated as im baffled
best regards
alex