php / java check form virker ikke mere
jeg har skiftet select id="first" ud med select name="first" og select id="second" ud med select name="second"<form name="form1" method="post" action="?action=joined&sid=$sid&div=$div" onsubmit="return validate(this);">
og nu virker nedenståene ikke mere plz hjælp, de det skal virker
<script language=\"javascript\" type=\"text/javascript\">
function isEmpty(string) {
return !/\S+/.test(string);
}
function validate(form) {
/* Requiring only one of either state or zip code seemed
* rather odd (though I'm not an American, admittedly), so
* the code below doesn't follow the original logic.
*/
var oFirst=document.getElementById(\"first\");
var oSecond=document.getElementById(\"second\");
if (oFirst.options[oFirst.selectedIndex].value == oSecond.options[oSecond.selectedIndex].value){
alert('You can\'t select the same in first and second choice');
return false;
}
}
</script>
