How do I do this in Version 6

Ron 27 Jan, 2019
Hello

I am new to version 6. I have been using version5 and I am happy with it. Now I am upgrading my forms to version 6. I have to collect some data from a php array in my forms.
For Example : I have an array with cull names of countries. Like when I get a firm data from the filed like "TN" I need a full name of TN which is Tanzania. I normally use this in my email like this to fetch a full name from the dynamic array : echo ("\n {$country_full_name[$this->data['country'].''.'']}"); . How can I do it in Version 6 ?

Please help.
Thanks
Ron
healyhatman 28 Jan, 2019
1 Likes
Well..... sorry use a PHP code block and return the value and use {var:phpblock} in your email.

Or use a Custom Code block set to return var only, and echo out the whole email you want, then just use {var:customcodeblockname}
Ron 29 Jan, 2019
Thanks for your reply healyhatman..

I tried what you said but could not reach anywhere closer to anything.. Could you please give me an example ?

Thanks for the help
Ron
Ron 29 Jan, 2019
Sorry healyhatman...

I think I understood your reply. I am trying it out.. I had just made some errors.

Thanks again

Ron
Ron 29 Jan, 2019

Or use a Custom Code block set to return var only, and echo out the whole email you want.


How do I echo out, what code will I use in the email body ?

Please help

Ron
healyhatman 29 Jan, 2019
As in use normal html and PHP. In the email use {var:custom_code_block_name}
Ron 29 Jan, 2019
Aha... Okay. I Got it.

Thanks very much.

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