Can you please help me. I need to pass a value from a lin to my form and all the examples I'm finding on the forum thus far don't seem to work.
They all seem to involve some variation of this code, which when I add to a custom code block in chronforms6 just seems to throw an error (below)
<?php
if ( !$mainframe->isSite()) {return;}
$var = JRequest::getInt('session', '0', 'get');
?>
ERROR = 0 Call to a member function isSite() on null
Here is an example of the link with the value I want to pass, is that correct? I want that session ID to pass to the form somehow. I need to add that session ID to the name of the signature that is saved once the form submits. Can you please help?
http://XXXXXX/index.php?option=com_content&view=article&id=20&session=544
They all seem to involve some variation of this code, which when I add to a custom code block in chronforms6 just seems to throw an error (below)
<?php
if ( !$mainframe->isSite()) {return;}
$var = JRequest::getInt('session', '0', 'get');
?>
ERROR = 0 Call to a member function isSite() on null
Here is an example of the link with the value I want to pass, is that correct? I want that session ID to pass to the form somehow. I need to add that session ID to the name of the signature that is saved once the form submits. Can you please help?
http://XXXXXX/index.php?option=com_content&view=article&id=20&session=544