PHP code in subform
Posted: Wed Jun 02, 2021 5:42 pm
Hi,
I have added some simple After Submit code in a subform. It runs well if I execute the code on the subform directly, but when it is run as a subform nothing happens.
The error message at the end of the code also does not show up when run as a subform.
Am I missing something?
AS Code in the subform is simply:
I have added some simple After Submit code in a subform. It runs well if I execute the code on the subform directly, but when it is run as a subform nothing happens.
The error message at the end of the code also does not show up when run as a subform.
Am I missing something?
AS Code in the subform is simply:
Code: Select all
#Update the user
if ('#USER_ID#' != '') {
$s = "UPDATE table SET updated_uid='#USER_ID#' WHERE disease='#disease#' ";
$t = nuRunQuery($s);
nuDisplayError($s);
}