Hello,
I have a form where I need to calculate a price and pass it into emails and into the database table. I'm using Joomla 1.5.
In ChronoForms v3.x, this worked:
Should I be doing something different for ChronoForms v4? I haven't gotten the JRequest line to work.
I'd like to make some custom subject fields for email messages. Will the JRequest work, or do I need to do something different?
...and while I'm at it, would the solution change if I were in Joomla 1.6? We are planning on migrating this site in a few months, so I'll need to know how make this work in Joomla 1.6.
Thanks!
I have a form where I need to calculate a price and pass it into emails and into the database table. I'm using Joomla 1.5.
In ChronoForms v3.x, this worked:
//Calculate total amount to charge card
$amount = 12.00;
$tickets = JRequest::getString('tickets','', 'post');
$totalcost = $tickets * $amount;
JRequest::setVar('totalcost', $totalcost);
Should I be doing something different for ChronoForms v4? I haven't gotten the JRequest line to work.
I'd like to make some custom subject fields for email messages. Will the JRequest work, or do I need to do something different?
...and while I'm at it, would the solution change if I were in Joomla 1.6? We are planning on migrating this site in a few months, so I'll need to know how make this work in Joomla 1.6.
Thanks!