Link to home
Start Free TrialLog in
Avatar of dlearman1
dlearman1Flag for United States of America

asked on

How to eliminate "realname" and "email" from formMail.php (tectite.com) results.

When I submit a test form the return email has the following message above the actual form results. The form results are actually good. They just have this error message above them:

"To: doug@pricelearman.com
From: FormMail@www.familytofamilyseniorcare.com

The following error occurred in FormMail :
missing_fields
Error=The form required some values that you did not seem to provide.
Your email address
Your name

email: wD@GMAIL.COM
realname: wefRwqe"

Tectite doc's indicate this info can be excluded from the form results by using:

<input type="hidden" name="mail_options" value="Exclude=email,realname">
but this doesn't seem to work.

Does anyone know how to delete this content from the form results? I have attached a pdf of an actual results email. The formMail script is at http://www.familytofamilyseniorcare.com/sendForm.php. The HTML form is on the page at  http://www.familytofamilyseniorcare.com/contact.htm.
FormMail-results.pdf
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

I've never heard of anyone using Tectite.  Please post the PHP source code here in the code snippet so we can see what is going on.

There appear to be two HTML forms in your contact.htm page.  The bottom one, for Google Maps, is probably irrelevant.  The top one, stripped of all the cruft, contains this.
<form class="form item" method="post" action="http://www.familytofamilyseniorcare.com/sendForm.php" name="contactForm">
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER" />
<input type="text" class="form-control input-lg" name="inputName" id="inputName" placeholder="name:" required>
<input type="email" class="form-control input-lg" id="inputEmail" name="inputEmail" placeholder="email:" required  >
<input type="text" class="form-control bfh-phone input-lg" data-format="+1 (ddd) ddd-dddd"  id="inputPhone" name="inputPhone" placeholder="phone:" >
<textarea name="comments" id="comments" class="form-control" placeholder=" how can we help you?" rows="4"></textarea>
<button id="contactButton" type="submit" class="btn btn-default btn-md">SEND</button>
<input type="hidden" name="recipients" value="request@familytofamilyseniorcare.com, doug@pricelearman.com" />
<input type="hidden" name="subject" value="Message From A Website Visitor" />
<input type="hidden" name="derive_fields" value="email=inputEmail,realname=inputName" />
<input type="hidden" name="mail_options" value="Exclude=email,realname;FromAddr=Website Visitor">
</form>

Open in new window

As you can see, the mail_options control contains value="Exclude=email,realname;FromAddr=Website Visitor".  This seems to conflict with what you wrote about Tectite docs, to wit, value="Exclude=email,realname" so my first recommendation would be to try using this input control exactly as Tectite recommends, without the extra stuff.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dlearman1

ASKER

Ray... Thanks for your comments. We have been using formmail.php for at least a century. It is old and out-of-date, but then it only has to interface with nothing more demanding than email  But, you're right we should be looking into a more current product.  Do you have any in mind worth checking out?