Hello. Can you please help me with the following?
I have a form with 2 pages.
1) I want to to able to navigate from page 2 back to page 1 using a button. Is this possible? How?
2) I want to be able to keep in the same session the value passed between the two pages.
3) would clicking back on the browser keep me in the same session?
What i managed to do at the moment is to use pass data from page1 to page 2 using Data to Session and Session to Data..
Many thanks
Kind regards
Amelia
Hi Amelia,
i have already answered this here:
http://www.chronoengine.com/forums/posts/t97561/p336436/handle-arrays-and-form-data.html#p336436
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hello Max
Thank you. I removed the Data to Session and I am suing two pages.
I see now how data is sent between them.
but if I go back and resubmit the first page how can I collect the data from each submission of page 1 in one variable. Can you help with an example?
Many thanks
Regards
Amelia
Hello Max
I think that I misunderstood what form -> data array is intending to do.
Is it the case that it collects all the values passed on (i.e., all variables).
It does not contain all the data of a session.
Is this correct?
How would I collect all data passed on in one session and use it?
Amelia
PS:
I am a beginner and I am learning a lot. I can see how powerful chronoforms and in principle one can do a lot...my mind is definitely working well ahead of my capabilities. I will persevere with your help.
Thank you for your help. Is is very much appreciated.
Hi Amelia,
The $form->data array is used by ChronoForms to hold the data available when an event starts. It gathers all the available values from the GET (the URL) and the POST (a for submission) arrays in PHP.
The data is available to any action in the event and you can edit and add to it.
At the end of the event it is lost.
You can pass data between events in two ways.
+ The Multi-Page action will save data to the user session at the end of an event and get any saved data back at the beginning of an action.
+ The Data to Session action does the save part; and the Session to Data action gets data back - these give you a little more control that may be needed in some cases. They are most useful passing data between forms.
Bob