CalcBuilder Forum

Passing values to/from RSForms

Usuario anonymous 2011-10-18 20:40:18

Works brilliant, thanks alot, but I do have some questions:

I need to have one initial form. I am using RSForms to process that. Is there any way I can pass those variables to the calcbuilder form, or perhaps the calc form variables to RSForms?

Thanks for your help!

Moonsoft support 2011-10-18 20:40:46

Hello,
we are not sure about how RSForms stores it's output. If it's saved at database, the variables could be read from the rsforms table. Other way to share variables between the extensions, is to add session variables, maybe at the time the form is submitted. If you place this code

session_start();
$_SESSION=$result;

or, using joomla standards:

$session=JFactory::getSession();
$session->set('result',$result);



at RSForms or calcbuilder code, you'd be able to recover the variable 'result' at any other extension afterwards.

$result=$session->get('result');

Hope this helps, best regards

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!