Session

jhdesign 21 Sep, 2011
On Form1 I have Data to Session and Redirect as last 2 events "On Submit"

On Form2 I have "Session to Data" on the "On Load"

When I do a print_r2($data) on Form2 (On Load) I'm seeing no variables display from Form1.

What am I missing?
GreyHead 21 Sep, 2011
Hi jhdesign,

It would be print_r2($form->data);

Bob
jhdesign 21 Sep, 2011
Yes, print_r wasnt my issue🙂

How do I print the session variable on the 2nd form?
GreyHead 21 Sep, 2011
Hi jhdesing,

With print_r2($form->data); in a Custom Code action after the 'Session to Data' action.

Bob
jhdesign 21 Sep, 2011
Bob

Forget the Print_R.

How do I show a field value submitted on Form1 to show on Form2.
Max_admin 21 Sep, 2011
Hi J,

You should use:

print_r2($form->data);


The data is stored under $form->data but not $data like what you have now.

Using a "debugger" will show this as well.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jhdesign 21 Sep, 2011
Max, thanks for replying.

The issue is not print_r

The issue is getting field value from Form1 to show on Form2
Max_admin 21 Sep, 2011
well, ok, but the print_r2 is showing the field value in the data array or not ?

if its then you can use {field_name} in the form code or in a thanks message action.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jhdesign 21 Sep, 2011
Max,

Not showing any data when I do print r on secondary form.

I want to use the country dropdown value (from Form1) as a Heading on Form2.
GreyHead 21 Sep, 2011
Hi jhdesign,

Please check my reply in your other thread on this question.

Bob
jhdesign 21 Sep, 2011
Bob's solution (from other post)

Both forms must have matchin session keys.

That fixed it. Issue closed.
This topic is locked and no more replies can be posted.