Passing variables via URL to Formbuilder
Posted: Fri Apr 04, 2008 5:19 am
I have read and experimented with anything I could find to do with passing variables to Formbuilder via a URL but I just can't seem to get it. I have coded a selflink to produce the following URL:
http://www.mysite.com.au/index.php?page ... ge=gourmet
... and I am calling Formbuilder with the following:
{cms_module module='FormBuilder' form='b_tempted' value_fld45=$smarty.get.package value_fld38=$feu_firstname}
The $feu_firstname variable is derived from a UDT that extracts the data from the Front End Users module and that is correctly passing to a hidden field in my Formbuilder form. No problem. The $smarty.get.package hook though is not working.
I also tried putting the following into a UDT:
$package = $_GET['package'];
$smarty->assign('package',$package);
When I insert {package} into the pages template it correctly prints out 'gourmet', but I cannot transfer $package to Formbuilder using:
{cms_module module='FormBuilder' form='b_tempted' value_fld45=$package value_fld38=$feu_firstname}
If anyone could help with this I would be very grateful. I am using the current version of CMS Made Simple and Formbuilder.
http://www.mysite.com.au/index.php?page ... ge=gourmet
... and I am calling Formbuilder with the following:
{cms_module module='FormBuilder' form='b_tempted' value_fld45=$smarty.get.package value_fld38=$feu_firstname}
The $feu_firstname variable is derived from a UDT that extracts the data from the Front End Users module and that is correctly passing to a hidden field in my Formbuilder form. No problem. The $smarty.get.package hook though is not working.
I also tried putting the following into a UDT:
$package = $_GET['package'];
$smarty->assign('package',$package);
When I insert {package} into the pages template it correctly prints out 'gourmet', but I cannot transfer $package to Formbuilder using:
{cms_module module='FormBuilder' form='b_tempted' value_fld45=$package value_fld38=$feu_firstname}
If anyone could help with this I would be very grateful. I am using the current version of CMS Made Simple and Formbuilder.