Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Javascript to submit a form

I'm using ExtJS on a registration page which should have no effect on this.

<form name="registerform" id="registerform" method="POST" action="registerProcess.php">

I have that form and the javascript

document.registerform.submit()

will not submit the form.... any ideas?

like image 307
Webnet Avatar asked Mar 22 '26 03:03

Webnet


1 Answers

This is usually caused by having a form control (usually a submit button) with a name or id of 'submit'. This clobbers the submit method; rename it.

like image 189
Quentin Avatar answered Mar 24 '26 18:03

Quentin