I have a form with the following field:
<div style='width: 100%'>
<input type='text' class='field' size='40' name='email:email' id='email' value='[[+fi.email]]' />*
</div>
The form is processed with a Formit call:
[[!FormIt?
&hooks=`SaveBooking2Db,spam,email,redirect`
&emailTpl=`[[+emailTpl]]`
&emailTo=`[email protected]`
&redirectTo=`1`
]]
The SaveBookind2Db snippet in the hooks is a custom hook that tries to save the values of the form fields to a database using a PHP helper class. The snippet instantiates the helper class and sets its properties with the values entered into the form. For the above field it does:
$dbHelper->email = $modx->getPlaceholder("email");
Unfortunately, this doesn’t seem to work as the properties of $dbHelper remain empty.
I’m a stumped to be honest, as the email chunk that follows the SaveBooking2Db snippet relies on the same information and it gets the job done.
I must be doing something wrong, only what???