The three values of the check box values are read from the database. if they are not empty, the code will be OK: & lt; tr & gt; & lt; td & nbsp; class = "add_table_left" & gt; application type: & lt;/td & gt; & lt; td & nbsp; class = "check box value
The three values are read from the database. if they are not empty, OK.
Code:
Application Type:
$ Arr_app_type = explode (";", $ rs ["app_types"]);
$ SQL = "select * from app_type where id in (10, 4, 6) order by id ";
$ Mysql-> query ($ SQL );
While ($ row = $ mysql-> fetch_array ()){
?>
"
/>
}
?>
------ Solution --------------------
I don't know what you want to ask
------ Solution --------------------
In the form onsubmit event, call js function verification.
------ Solution --------------------
Refer
《script》
function foo(){
var chs=document.getElementsByName('app_types[]');
var counter=0;
for(var i=0;i
if(chs[i].checked) counter++;
}
if(counter==0) return false;
return true;
}
《script》