Forums

Dynamic Subject code from the book

desertdiana 01 Jun, 2012
I bought the Chronoforms 3.1 for Joomla book to help me learn chrono forms. So far so good, but one problem with the dynamic subject. Followed the steps in the book and am using the code in the book and it does send the subject with the select_1 (which is a county in Oregon) but not the additional text before it. Can you tell me what I am doing wrong here?

<?php
$name = JRequest::getString('select_1',
'' ,'post');
$subject = "County Candidate Information for $name";
JRequest::setVar('subject', $subject);
?>


we have Joomla version 1.5.2 and the chronoform version is V3

Thank you,
Diana
desertdiana 02 Jun, 2012
No problem...........I got it to work, but a whole new set of problems have surfaced. Back to square one..........not happy!
GreyHead 02 Jun, 2012
Hi Diana,

Good to see you got that working - the code you posted looks OK from here.

Bob
This topic is locked and no more replies can be posted.