Specials | Announcements | Contact | Site Map
Willmaster.com
Hijack-proof forms. Surveys. List building.

Solid, safe website tools.

Whatever your need, Will Bontrager builds powerful software solutions.

Affiliate Cookie Setter
Search WillMaster.com:

WillMaster > Support > CGI Q&A

If you don't find the answer to your question in these archives, ask your CGI question at the Current Master Series CGI Forum.

bad header fields

Author Message
26Apr05

Anthony
Subject: bad header fields

I use a regular form and it works with both MACS and PC's.

I am using a hosting co called internetters and now the form works on a mac but not a PC displaying the error "bad header fields".

need to go live this week, can anyone help. Here is the input code section:

Any advice would be much appreciated.

Ant

<Form action="/cgi-bin/formmail/iopost.pl" method="POST" enctype="text/plain">

<input type=hidden name="recipient" value="itdept[symbol removed to foil email harvesting robots]huntinteriors.co.uk">
<input type=hidden name="subject" value="Website Form Response">

<input type=hidden name="redirect" value="http://www.huntinteriors.co.uk/draft/thankyou.htm">

<input type="hidden" name="required" value="Title, First_Name, Last_Name, Address_Line1, Address_Line2, Town, County, Postcode, Day_Telephone, Mobile, Email, Comments">
<input type="hidden" name="sort" value="order:Title, First_Name, Last_Name, Address_Line1, Address_Line2, Town, County, Postcode, Day_Telephone, Mobile, Email, Comments">
<input type="hidden" name="print_config" value="Title, First_Name, Last_Name, Address_Line1, Address_Line2, Town, County, Postcode, Day_Telephone, Mobile, Email, Comments">

26Apr05

Will

[Email]

In response to: bad header fields

It's strange that the form works through a browser on one platform but not through a browser on another platform.

Try removing the

enctype="text/plain"

attribute from the FORM tag. That attribute could be causing the browser to deliver information to the script in a format the script isn't expecting, meaning data corruption.

If still no go, verify that the email address in the form is valid.

I'm thinking the reason is probably one of the above because sendmail can cause a "bad header" message.

If the problem persists, there might be an HTML error of some kind on the page that one browser is lenient about and the other doesn't like.