That
if (df[i].checked=true) {
should of course read
if (df[i].checked==true) {
<sigh !>
Cheers - Neil
<script language="javascript1.2" type="text/javascript"> function validate_form() { valid=true; df=document.forms["myform"]; var regex="del\[\d+\]"; for (i=0; i<df.elements.length) { if (df[i].type=="checkbox" && df[i].name.match(regex)) { if (df[i].checked=true) { valid = false; break; } } } } </script>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php