I am trying to make sure that both set of radio button are checked on submit.
I am using php and am having problems embeding JS in PHP. i did try but am having problems.
thanx for helping in advance.
[CODE]<?php
echo”<script type=”text/javascript”>”;
function checkBlank(){
if((!document.form1.apparel[0].checked && !document.form1.apparel[1].checked && !document.form1.apparel[2].checked && !document.form1.apparel[3].checked)
|| (!document.form1.material[0].checked && !document.form1.material[1].checked && !document.form1.material[2].checked){
echo”alert(“Select both categories”);”;
return false;
}
else{
return true;
}
}
echo”</script>”;
?>