Hello,
I am trying to edit my functions.php file with the following code it relates to gravity forms:
/* Chris Hajer Gravity Forms August 21, 2014 */
add_action('gform_pre_submission_12', 'format_for_payment');
function format_for_payment($form){
$total = rgpost('input_19');
$_POST['input_25'] = number_format(floatval(ereg_replace("[^-0-9\.]","", $total)), 2, '.', '');
}
However, when doing so, an error occurs. Please see attached screenshot.
How can I edit the functions.php file with the above code to not cause this error?
I look forward to your reply.
Thank you.
Attachments:
You must be
logged in to view attached files.