We help IT Professionals succeed at work.

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

dlearman1 asked
Last Modified: 2017-03-21
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 :
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.
Watch Question

Most Valuable Expert 2011
Author of the Year 2014

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">

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.
Most Valuable Expert 2011
Author of the Year 2014
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)


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?

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions