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

dlearman1 used Ask the Experts™
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:


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 The HTML form is on the page at
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016

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="" 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="," />
<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
Top Expert 2016
One other thing, maybe not relevant but certainly suspicious...

Now that I've looked at Tectite a bit, I can tell you that it looks like a product that is left over from the last millennium.  And it displays standards compliance icons but the W3 validator shows that it is clearly not compliant with the standards.  This sort of thing gives off a smell and I would look for another solution, not Tectite.

Tectite page with bogus standards icons:

The validator output can be seen here (the Tectite page icon links do not work)


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?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial