Hi,
I am writing the confirmation page using the given plugin. I don´t want to show all the inputs, just the ones that have certain values.
So i want to use php to check the value of the input and then decide if they are shown in the confirmation page.
I have tried adding this code in the begining:
<?php
if (!$mainframe->isSite() ) {return;}
$session =& JFactory::getSession();
$posted = $session->get('chrono_formpages_data_MyForm', array(), md5('chrono'));
?>
Where "MyForm" is my form ;-)
Then i tried to access to the inputs using the $posted array.
I have used this solution which is the one proposed in the CoockBook for multipage forms when you want to access to the inputs in previous pages. In this situation it doesn´t work.
Thank you very much for your help.
carlos
I am writing the confirmation page using the given plugin. I don´t want to show all the inputs, just the ones that have certain values.
So i want to use php to check the value of the input and then decide if they are shown in the confirmation page.
I have tried adding this code in the begining:
<?php
if (!$mainframe->isSite() ) {return;}
$session =& JFactory::getSession();
$posted = $session->get('chrono_formpages_data_MyForm', array(), md5('chrono'));
?>
Where "MyForm" is my form ;-)
Then i tried to access to the inputs using the $posted array.
I have used this solution which is the one proposed in the CoockBook for multipage forms when you want to access to the inputs in previous pages. In this situation it doesn´t work.
Thank you very much for your help.
carlos
Hi Carlos,
Please try using just $posted - as far as I can see from the code the values are pre-loaded into the array.
Bob
Please try using just $posted - as far as I can see from the code the values are pre-loaded into the array.
Bob
This topic is locked and no more replies can be posted.