Submit value in thanks email ( PHP )

321mark 24 Aug, 2011
Hi everybody!

I think my question is very easy for you.

I want to use the values of a field in the thanks - emails. I know, in HTML I do this with {fieldname}

for example: Dear {name}, thank you ....

But now i need PHP in the email but i don't know, how to submit the value of "name" in my variable $name.

I hope you can help me!
GreyHead 24 Aug, 2011
Hi 321mark,

In ChronoForms v4 The form data is in the $form->data array so you can use, for example
<?php echo "Dear {$form->data['name']},"; ?>

Bob
321mark 24 Aug, 2011
Hey GreyHead....

you are great. That's what I wanted to know. Thanks for the answer!!!
This topic is locked and no more replies can be posted.