Simplest solution is to directly assign the submit function to the form.<br><br>$form['#submit'][] = 'customerportal_form_submit';<br><br><div class="gmail_quote">On Tue, Mar 17, 2009 at 10:19 PM, Gordon Messmer <span dir="ltr"><<a href="mailto:yinyang@eburg.com">yinyang@eburg.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm trying to write a new module, and having some trouble with the forms API. I'm deploying this under Drupal 5. I've been reading the tutorials and documentation for the forms API. A lot of this module is cut and paste from the documentation.<br>
<br>
I'm able to generate a form properly, and even theme it. It displays properly in my browser. However, when I submit the form, the _submit function isn't called. The code is here:<br>
<br>
<a href="http://phantom.dragonsdawn.net/%7Egordon/customerportal.module" target="_blank">http://phantom.dragonsdawn.net/~gordon/customerportal.module</a><br>
<br>
The browser sends the form data via POST, and the web server responds with "200 OK", sending back the form HTML. It doesn't log any errors. I have no idea how to go about debugging Drupal to determine why the _submit function isn't being called. Can anyone give me some pointers?<br>
</blockquote></div><br>