Home › Forums › Quform PHP › Add field to notification email
- This topic has 2 replies, 2 voices, and was last updated 6 years, 6 months ago by markf.
- AuthorPosts
- April 30, 2018 at 9:06 pm #25385markfParticipant
I have used the Quform to process an existing html contact page. It is working correctly.
The notification email that I recieved when the form is submitted contains 3 of th e4 form fields that I would like to have.Message
email address
subjectI have a field for Full Name. I would like to have that included but can’t seem to add the php code to the notification.php file correctly.
Here is the form html:
<form action=”quform/process.php” method=”post” class=”vanilla-form quform”>
<div class=”quform-elements”>
<h4>Please fill in all fields.</h4>
<p>
<label for=”name”>Your Name:</label>
<div class=”quform-input”>
<input id=”name” name=”Name” placeholder=”Your Full Name” type=”text”>
</div>
</p>
<p>
<label for=”email”>Your Email:</label>
<div class=”quform-input”>
<input id=”email” name=”email” placeholder=”Valid Email Address” type=”email”>
</div>
</p>
<p>
<label for=”message”>Message:</label>
<div class=”quform-input”>
<textarea id=”message” name=”message” placeholder=”Your Message to Us” rows=”10″></textarea>
</div>
</p>
<p>
<label for=”subject”>Subject:</label>
<div class=”quform-input”>
<input id=”subject” name=”subject” placeholder=”Your Subject” type=”text”>
</div>
</p>
</div>I am trying to add this line from the support docs to notification.php:
<?php echo $form->getValueHtml(‘Name’); ?>I must be adding it in the wrong place or some other configuration error on my part. Can anyone show me where and how I might add that code to notification.php so when I get the notification email it contains the value entere into the Name field? TIA for any help.
May 2, 2018 at 5:01 pm #25452AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
May 2, 2018 at 11:06 pm #25476markfParticipantThat worked! Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.