我用javascript <script> function check_form(){ var vf=document.from.vfrom for (i=0;i<vf.length;i++) { if (vf[i].value=="") { alert("XXXXX");break;return false;} } } </script>
在form里写 onsubmit="return check();"单选框也就是 if (VFROM.CHECKED) alert("");
for i=1 to formname.radio1.length msgbox formname.radio[i].value next
<script>
function check_form(){
var vf=document.from.vfrom
for (i=0;i<vf.length;i++)
{ if (vf[i].value=="")
{ alert("XXXXX");break;return false;}
}
}
</script>
msgbox formname.radio[i].value
next