[support] Form api GET/POST method not working

Homer Simpson nebodysguess at gmail.com
Tue Sep 30 22:56:18 UTC 2008


Hi,

I'm creating a form module using form api in Drupal 6.x. The form
validation is done on a different page in the same theme.

if I use
$form['#method'] = 'get';
I'm able to obtain the variables through GET method, but
$form_state['redirect'] is NOT working for me.
For GET method, I access the variables directly by their names.

if I user
$form['#method'] = 'post';
I'm NOT able to obtain the variables through POST method, but
$form_state['redirect'] is working for me.
For POST I tried both accessing the variables directly, and through
the array $_POST['edit'].

How do I get either of these methods to work completely ?

Thank you


More information about the support mailing list