Jan 26th, 2011, 8:16 AM
(This post was last modified: Jan 26th, 2011, 8:42 AM by russellfeeed.)
Hi
I have a Submission Pre-Parser rule which fires on Update of a submission via the Formtools UI.
The rule *is* firing and using some print_r debug I can see the the values I've entered.
also
I need to take two of the fields and encrypt them. My code for this is working fine.
How do I get these modified values back into the database?
I've tried putting them into the $_POST variable using the correct keys (my field names and database names are the same) but they just refuse to update!
Strangely,
gives me I have a Submission Pre-Parser rule which fires on Update of a submission via the Formtools UI.
The rule *is* firing and using some print_r debug I can see the the values I've entered.
also
Code:
$_POST[form_tools_calling_function] => ft_update_submissionI need to take two of the fields and encrypt them. My code for this is working fine.
How do I get these modified values back into the database?
I've tried putting them into the $_POST variable using the correct keys (my field names and database names are the same) but they just refuse to update!
Strangely,
PHP Code:
<?php
echo(print_r($_REQUEST,true));
Code:
Array ( [form_id] => 6 [submission_id] => 1 [tab] => 3 [notes] => [item_no] => [status] => [mbbs_order_number] => [directdebit_sortcode] => 20-21-33 [directdebit_account] => 01234560 [imei] => [field_ids] => 336,337,338,339,349,350,351,352,353,355 [update] => UPDATE )but
PHP Code:
<?php
echo(print_r($_POST,true));
