Gøre form-modtagerscripts (<form action=) afhængig af form felt
Hey kan det lade sig gøre at stille nogle kriterier i javascript, så angiver hvilket action en formular har.altså noget med
<form...action="etellerandetscript.asp" onSubmit="return checkFields();">
.
.
.
</form>
function checkFields() {
if(document.form.tst.value == "action1") {
form.action = "script1.asp"
}else {
form.action = "script2.asp"
}
}
