Hello,
I have this channel I’ve setup where users post “work interventions” using SafeCracker.
There are two date-time fields there: intervention_start_date & intervention_end_date
Based on this two fields, I have a PHP script that does some calculations and outputs two values.
I need to store these values together with the new entry in the DB.
How should I go about doing this?
I was thinking maybe there is a way to append my PHP function to the new entry call. Is this possible? Can my function get passed the “intervention_start_date” & “intervention_end_date” variables from the new entry, then do the calculations and insert the additional output in the DB?
Thanks so much!