I'm doing something wrong here but can't track it down.
J 1.5.23
CF
Straightforward form with checkboxes, textboxes, a textarea and an imageverification and submit button.
Sends emails ok, add rows to db table ok. Lovely.
Now I want to add some sanitisation using JRequest in the 'On Submit code - before sending email' in the 'Form Code' tab.
'compname' is a textbox in the form.
I put 'Noinput' in the default value for the getString in the hope it would show up in the email and table row thus indicating the code was running but I get nothing 😟 Nor does CF's debug show 'Noinput' in the POST array for 'compname'.
Emails are on in the general tab. DB Connection is enabled and set to 'after email'. Mootools upgrade plugin is disabled. J email cloaking plugin is ordered before the chronoforms J plugin.
There is a thank you message in the 'On Submit code - after sending email'
The form is embedded in an article using the CF J plugin.
Nick
J 1.5.23
CF
Straightforward form with checkboxes, textboxes, a textarea and an imageverification and submit button.
Sends emails ok, add rows to db table ok. Lovely.
Now I want to add some sanitisation using JRequest in the 'On Submit code - before sending email' in the 'Form Code' tab.
'compname' is a textbox in the form.
<?php
$compname = JRequest::getString('compname','Noinput','post');
JRequest::setVar('compname', $compname);
?>
I put 'Noinput' in the default value for the getString in the hope it would show up in the email and table row thus indicating the code was running but I get nothing 😟 Nor does CF's debug show 'Noinput' in the POST array for 'compname'.
Emails are on in the general tab. DB Connection is enabled and set to 'after email'. Mootools upgrade plugin is disabled. J email cloaking plugin is ordered before the chronoforms J plugin.
There is a thank you message in the 'On Submit code - after sending email'
The form is embedded in an article using the CF J plugin.
Nick