2.3.8 - php include no longer passing values

rodsdesign 19 Mar, 2008
this is kind of weird.

I have the states and countries in an include file which worked since I wrote it.

I **think** it stopped working when I upgraded to 2.3.8.

I simply have an include such as:
<?php include ("stateincluded.php"«»);?>
which calls the state select.

Its there in the form. but it doesn't pass the values to the email. all that comes up is {state}...

anyone else?

thanks - Rod
Max_admin 19 Mar, 2008
Hi Rod,

I don't think this would ever work, I guess you havet hel ine of code above in the HTML box ? then try to add a hidden field(s) with the names of the fields generated by this include at the top of your html and see if this will do it, if not then please let me know for some hack I did recently!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 19 Mar, 2008
also, the other hack will be this :

Replace those lines at chronocontact.php:

if ( trim($paramsvalues->omittedfields ) != '' ) {
	       $omittedlist = explode(",", $paramsvalues->omittedfields);
        }
	    $htmlstring = $rows[0]->html;


with :


if ( trim($paramsvalues->omittedfields ) != '' ) {
	       $omittedlist = explode(",", $paramsvalues->omittedfields);
        }
$htmlstring = $rows[0]->html;
ob_start();
eval( "?>".$htmlstring );
$htmlstring = ob_get_clean();


cheers

Max<br><br>Post edited by: admin, at: 2008/03/19 04:48
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.