Hello,
I'm wondering if it's possible to add prefix to all the values that correspond to my submitted form and not to mix them with parameters from other modules.
My situation is next: for the user profile I'm using "profiler" module and on the very same page I got form from chronoform.
Everything looks OK but the problem appears during the process of submission: after the submission "profiler" module adds explicitly 'id' parameter to $_POST array (this is the way it defines users). Because of this 'id' parameter being added to POST request, chronoforms thinks that this is an id that it need to use for submission and it tries to 'UPDATE' corresponding value with id=1, which actually doesn't exist.
So, instead of having 'INSERT' statement, chronoforms tries to 'UPDATE' inexisting one, because 'profiler' module has cheated and added 'id' param.
My idea was to try to add prefix to all the values that correspond to chronoforms, so it won't mix with other parameters.
Do you have any ideas regarding this?
Kind regards,
Dmytro
I'm wondering if it's possible to add prefix to all the values that correspond to my submitted form and not to mix them with parameters from other modules.
My situation is next: for the user profile I'm using "profiler" module and on the very same page I got form from chronoform.
Everything looks OK but the problem appears during the process of submission: after the submission "profiler" module adds explicitly 'id' parameter to $_POST array (this is the way it defines users). Because of this 'id' parameter being added to POST request, chronoforms thinks that this is an id that it need to use for submission and it tries to 'UPDATE' corresponding value with id=1, which actually doesn't exist.
So, instead of having 'INSERT' statement, chronoforms tries to 'UPDATE' inexisting one, because 'profiler' module has cheated and added 'id' param.
My idea was to try to add prefix to all the values that correspond to chronoforms, so it won't mix with other parameters.
Do you have any ideas regarding this?
Kind regards,
Dmytro