HTML
<form id="login_form" name="login_form" accept-charset="utf-8"
method="post" action="">
<fieldset>
<img style="left: 20px; position: relative; top: 10px; margin-top:
-22px; padding-top: 5px;" src="
http://media.muskegohitmen.com/images/
siteLogo_sm.png"/>
<li class="bold">Username: <br/><input type="text" size="40"
name="username" maxlength="30" id="id_username"/></li>
<li class="bold">Password: <br/><input type="password" size="40"
name="password" maxlength="20" id="id_password"/></li>
<li><a class="js-login btn_sil">Login</a><a class="btn_yellow">Forgot
Password ?!</a></li><input type="submit" value="Login" name="login"/>
</fieldset>
</form>
# JS - there is a little mootools in there, but though that might be
the problem so I used the document. to see if that would do it
function hitmenFormSubmit(form_id)
{
form = form_id.get('id');
this.alert("form submit " +" "+form);
document.login_form.submit();
//$(form).submit();
}
The HTML button is on the page for debugging. The HTML button works
just fine. but the javascript button results in this error.
Views function is looking for request.POST ['login'] == Login
Why would a javascript submit not post the same data?
On Dec 22 2008, 9:23 pm, Malcolm Tredinnick <
malc...@pointy-stick.com>
wrote: