Hello
I have to get a full detail from a dynamic array to be displayed in an email but I am not able to do it. I have no problem working in CFV5 but it CFV6 it does not work.
Could I get some help as to how could I accomplish this.
Thanks
Ron
I have to get a full detail from a dynamic array to be displayed in an email but I am not able to do it. I have no problem working in CFV5 but it CFV6 it does not work.
<?phpI get the name of country in two digits from a form field. For example AU. So as per this I get from a dynamic array the full name of the country that is Australia. in CSV5. I tried to do this in CFV6 by using a custom code but I just cannot get it to work.
require_once( JPATH_ROOT . DS . 'components' . DS . 'com_xyz' . DS . 'country_full_name.php' );
echo( "\n {$country_full_name[$this->data['country_name'].''.'']}" );
?>
Could I get some help as to how could I accomplish this.
Thanks
Ron
I thought we covered this buddy?
Round brackets mate. It's a function, not an array.
$this->data("fieldname");
Round brackets mate. It's a function, not an array.
Thanks healyhatman,
Sorry I had not noticed the round brackets earlier. It worked
Thanks again
Ron
Sorry I had not noticed the round brackets earlier. It worked
Thanks again
Ron
Hello healyhatman,
I made the changes but the round brackets dose not seem to work. I get an empty response ( blank ).
Thanks for all the help.
Ron
I made the changes but the round brackets dose not seem to work. I get an empty response ( blank ).
Thanks for all the help.
Ron
Where is $country_full_name coming from and is this in a custom code block or a PHP block
This topic is locked and no more replies can be posted.