I have a very simple form that works fine in FF and Chrome but not IE. And by 'not work' I mean that IE complains 'object expected'. What am I missing?
TIA,
---JC
TIA,
---JC
Code:
<form name="myform" onsubmit="return validate(this)" method="post">
E-Mail: <input type="text" name="email" size="40" />
Password: <input type="password" name="password" size="12" />
<input type="submit" value="submit" id="my_submit" /></p>
</form>
function validate(form)
{
var email = form.email.value;
var password = form.password.value;
var errors = [];
if (!checkLength(email)) {
errors[errors.length] = "You must enter an e-mail address.";
}
if (!checkLength(password)) {
errors[errors.length] = "You must enter a password.";
}
if (errors.length > 0) {
reportErrors(errors);
return false;
}
form.action ="dl4.php?f=downloads/5061h.zip&e=" + email + "&p=" + password;
return true;
}
Comment