Home › Forums › Quform PHP › Displaying date in custom email
- This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by rauschusa.
- AuthorPosts
- September 12, 2014 at 1:48 pm #12403rauschusaParticipant
I am using the instructions for “Accessing submitted form data from inside the emails”.
I am also using the new Date Picker – I copied the HTML from the template and the process info from the template. I tried just calling it with
<?php echo Quform::escape($form->getValue('date'));?>
It won’t render the date in the email. I received this error, displayed in the email:Warning: htmlspecialchars() expects parameter 1 to be string, array given in .../lib/Quform.php
I’m not really too familiar with PHP – that’s a big reason I bought this form lol.
Since my auto-reply just uses the standard email code and process.php form insertion data (but without any of the custom organization I want to implement), the date shows correctly on the auto-reply email.
September 12, 2014 at 5:20 pm #12406AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
September 15, 2014 at 1:18 pm #12421rauschusaParticipantWhen I make this change, I receive this error message during debug:
Fatal error: Call to undefined method Quform_Element_Date::getValueHtml() in /.../quform/lib/Quform2.php on line 180
Line 180 and surrounding:
public function getValueHtml($name, $separator = '<br />')
{
$value = '';
$element = $this->getElement($name);if ($element instanceof Quform_Element) {
$value = $element->getValueHtml($separator);
}return $value;
}September 15, 2014 at 2:59 pm #12424rauschusaParticipantNevermind. Some other component of the form was not uploaded.
However, I am now receiving the following error code for each and every field:
Use of undefined constant QUFORM_HTMLSPECIALCHARS_DOUBLE_ENCODE -
assumed 'QUFORM_HTMLSPECIALCHARS_DOUBLE_ENCODE'
in .../quform/lib/Quform2.php on line 214To make sure I didn’t break my version 1.8 forms while updating to version 2.0.3, I named the common.php file “common2.php” and the Quform.php file “Quform2.php” and updated the process and common codes to point to these two.
September 15, 2014 at 7:46 pm #12427rauschusaParticipantFixed this one too. Turns out I was using version 1.8’s common.php after all…
- AuthorPosts
- You must be logged in to reply to this topic.