ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
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.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com