This is a little odd. I don't even know where to look for the problem. Certainly nothing is coming up in the various log files.

I'm not sure if this is a bug report or a support request.

This is drupal 6 AHAH helper 6.x-2.2.

The setup and behavior I'm trying to create are specific to the use case and necessary.

I have 2 forms on a page. The first uses AHAH Helper. It's job in life is to collect parameters for the construction of the second form below it.

1) Adding and removing fields from the first form works fine.
2) Passing the collected values through the $_SESSION variable (in $_SESSION[form1_data]) works fine.
3) The configuration of the second form works fine.

So:
I submit form1 with one field. Fine.
I add a field to form1 and submit again. Fine.
I add a third field to form1 and submit again. The page explodes. I go to ahah_helper/params where I see raw JSON.

I'm pretty baffled by this behavior and would be grateful for any advice.

Thanks for reading.

Comments

ss_drupal’s picture

I should add that my actual Submit button, as distinct from my Add More button or Remove buttons, actually has a submit handler defined.

I think I need to do that in order to put my variables up into the $_SESSION variable.

ss_drupal’s picture

Gimme a doh!

I had to overwrite the value of $form[#submit].

Works fine.

sanjay_kumar_sahu’s picture

i am getting same bug again,please share me with details.........................