Forums

Use a field value

multipianista 23 Sep, 2014
Hi, I have a simple form with an unic field in which you write the URL of a webpage. Then, what I want is to add my code (which reads some values of that webpage) in order to add the value my code gets into my database. My php code is written in Custom Code on the submit event (before DB save) but I don't know how to take the value of the field.

For example:

If the URL written is http://www.chronoengine.com/forums, I need that url as a value in my custome code.


Greets and thanks for reading.
GreyHead 23 Sep, 2014
Hi multipianista,

ChronoForms adds all the values to the $form->data array so you can use $form->data['input_name']

If you add a Debugger action you can see all the submitted values.

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