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
butOnly gives me
I've tried assigning the new values back to both $_POST and $_REQUEST to no avail.
My Edit Submission page has several tabs. Maybe this is the problem?
Cheers
Russell
I've done some more poking....
should I (and is it valid to) call ft_update_submission($form_id, $submission_id, $infohash) to do the update?
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_submission
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,
PHP Code:
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:
echo(print_r($_POST,true));
Code:
Array ( [form_tools_calling_function] => ft_update_submission )
I've tried assigning the new values back to both $_POST and $_REQUEST to no avail.
My Edit Submission page has several tabs. Maybe this is the problem?
Cheers
Russell
I've done some more poking....
should I (and is it valid to) call ft_update_submission($form_id, $submission_id, $infohash) to do the update?