Forums

Data from Form 1 to Form2

Muneo 29 Feb, 2008
I have two forms. The first, I choose one option (combo) that on event OnChange submit this form to other form. This other form will get the value of first form and it will search in database for the records that match with this statement.

I have the first form and all works fine.
The unique problem is that I can't recovery in second form the value from the first form. How to do?

==
The first form, to redirect the second form I fill "Submit URL:"
And onchange submit using this javascript:
document.myformsname.submit();

The second form, I tried to recovery the value of the first form using: $_POST['combovalue'] and mosGetParam($_POST, 'combovalue')
But, neither works.😟
Muneo 29 Feb, 2008
I solved the problem using GET and sending parameters using URL. It's not correct but works...
Max_admin 01 Mar, 2008
Hi Muneo, glad you fixed it, but for the info, you can just add the 2nd form URL at the first form submit URL field and it would be fine but no email or database will be made from the first form!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 01 Mar, 2008
Hi Muneo,

This might also be a candidate for a tabbed form. There's a simple example in the FAQs.

Bob
This topic is locked and no more replies can be posted.