Forums

HOW TO USE FORM DATA IN PHP

atanunu 02 Mar, 2017
Sir, Please, how can I use the form data in a custom PHP action; and how can I convert custom generated values to form data in PHP?
atanunu 02 Mar, 2017
Sir,

I tried but seems not to be working with CCv6; I still need help, please
Max_admin 03 Mar, 2017
Answer
Hi,

In v6 you can get the form data using this syntax:
{data:field_name}

or in php:
$this->data("field_name");


You may also add any value to the data array like this:
$this->data["field_name"] = "abc";


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
atanunu 03 Mar, 2017
Thanks sir,

It worked!
This topic is locked and no more replies can be posted.