I'm having a mare trying to automate a login form.
1stly, if i use document.formname.submit(); I get "Object doesn't support this property or method", yet if i remove the submit button frm the form then the auto submit works fine.
Why does this happen?
Secondly the PHP script i'm submitting too must be checking that the submit button was presed , as if i auto submit the form, it doesn't work, but if i click the submit button it works.
How can i simulate pressing the submit button with JavaScript?
Thanks,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
1stly, if i use document.formname.submit(); I get "Object doesn't support this property or method", yet if i remove the submit button frm the form then the auto submit works fine.
Why does this happen?
Secondly the PHP script i'm submitting too must be checking that the submit button was presed , as if i auto submit the form, it doesn't work, but if i click the submit button it works.
How can i simulate pressing the submit button with JavaScript?
Thanks,
1DMF.
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!