Forums

handle arrays and form data

ataylor14 20 Sep, 2014
Answer
Hello
I do not get the form data array. Can you please provide an example?

I have a form and with some textboxes and a submit button. The input text boxes are on the first page. When I submit data is sent to the next page. In the Setup in the section 'On Submit' I added the 'Handle Arrays' event, and Data to Session. Then on the 'page 2' I added an event ' Session to Data'.

I want to be able to resubmit the form on the first page and collect the results in an array and eventually use this collected data to add it to a database.

Say I submitted the form and now I go back to the first page using the arrows of the browser and I fill in the form and submit again how can I see both the values submitted in the first and the second clicking of the same submit button?
I tried printing using $form -> data['startdate'] ('startdate' is the name of a textbox) but I only get the second value.
I hope this makes sense.
Thank you.
Max_admin 21 Sep, 2014
1 Likes
Please use the "multi page" action and remove the "session to data" or "data to session" actions, you can check the included multi page demo form for the correct setup!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.