Frequently Asked Questions about the Feedback Form Script Wizard

FAQ for the thesitewizard.com's Feedback Form Script Wizard


Frequently Asked Questions (FAQ) about the Feedback Form Wizard

http://www.thesitewizard.com/faqs/feedbackform.shtml

This page lists answers to frequently asked questions about the Feedback Form Script generated by thesitewizard.com's Feedback Form Script Wizard. You should also check the list of Frequently Asked Questions (FAQ) about the Wizards in General if your questions are not answered on this page.

Error Messages Received

Email Problems: Spam, not receiving email, change of email address, no visitor's email, missing content, etc

Other Errors or Problems

Miscellaneous Questions

Tutorials on How to Use the Feedback Form Wizard

If your question is not listed here, please also read More Frequently Asked Questions about the Wizards


 

Answers to Frequently Asked Questions about the Feedback Form Script

Why do I get a "From address not in member domain" error?
Why do I not receive any email unless the visitor enters my email address in the Email field?

All email messages have a "From" header that contains the email address of the sender. The feedback form script sets the "From:" header to whatever email address your visitor enters. Unfortunately, some free web hosts do not allow scripts to set the "From:" header in email messages to an address that is outside your domain (or perhaps even to any address that is not the address you signed up with).

For example, if your domain is "example.com", the "From:" header needs to be something like "some-address@example.com" for the script to work. Or, if the email address you used when you signed up with the host was "you@example.com", the only email your visitor can type in that will work is "you@example.com". Since your visitor is unlikely to have an email address at your domain or the same address as you, the email address he types in will be rejected by your web host, and his message will not be sent.

At present, you have only two ways to fix this problem:

  1. Use another script. Check if your web host provides a feedback form script that will work around this problem.
  2. Change to a commercial web host - since they usually do not have this policy. If you don't know which to choose, evaluate the web host that I am currently using and see if it suits you.
Why do I get a "Method Not Found" or a "Method Not Allowed" error when I submit my form?
Why do I get an "Invalid Method" or "The HTTP verb used to access this page is not allowed" error when I submit my form?
Why do I see the source code of the script when I submit my form?
Why do I see this cryptic text "$headersep . "Reply-To: \"$name\" <$email>" . [...etc...] header( "Location: $thankyouurl" ); exit ; ?>"?
Why am I asked if I want to save the "feedback.php" file when I hit the submit button?
Why do I end up at the "feedback.php" file after I hit the submit button?

Chances are that this is because your web server does not support PHP or Perl. If you are running the form on a free web host, or the free web hosting provided by your ISP (Internet provider), this is probably the case. The solution is to use a commercial web host. (You can also find out which web host I currently use on the Which Web Host Would You Recommend? page.)

On the other hand, if you are running the form on a server that you administer yourself, and you know for certain that you have already installed PHP and/or Perl, you might want to check that you have set up the PHP (or Perl) MIME types for your Apache configuration files correctly.

Yet another possibility for this error is that you uploaded the feedback form script with a filename like "feedback.php.txt". Check the filename using your FTP program. If the form has been uploaded with a ".txt" extension, please read "How do I save the feedback form in Notepad without the ".txt" extension?" to find out how to fix the problem.

Why do I get a 'Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()...'?

If you get this error, it means that PHP was not set up correctly on your web server. Contact your web host and let them know the exact (and full) error message you received. If you are running your own web server on Windows, read my tutorial on how to set up PHP 5 on Windows and PHP 4 for some hints. Read especially the section on "SMTP Server".

Why do I keep getting 500 Internal Server Errors?

Please read my article, Perl CGI Debugging: Solving a 500 Internal Server Error.

Why does my Thank You page (or my Error page) not appear after I submit my form?
Why do I get a "File Not Found" error when I submit my form?

If you get a "File Not Found" error after you submit your feedback form instead getting your Thank You page, it's probably because you didn't create and upload your Thank You page. Alternatively, you gave your Thank You page a different filename from the one you gave the Wizard. Or, you may have placed your Thank You page in a different directory (folder) from the URL you gave the Wizard. The same applies for the Error page.

If you don't know how to create a Thank You page, just use your web editor and type the words "Thank You", save it with the filename you gave the wizard, and upload it to the location you told the wizard earlier.

If you get the contents of your feedback form script when you submit your form instead of a "File Not Found" error, see Why do I keep getting back my feedback form when I hit the submit button?

Why do I get an error that "feedback.php" or "chfeedback.pl" is not found?

Here are some possibilities:

  1. Did you upload your feedback.php or chfeedback.pl file to the correct directory?

  2. Did you name the file correctly? For example, "feedback.php" is not the same as "feedback.php.txt". If you used Windows Notepad to save your file, there is a chance that it added an additional suffix ".txt" to the filename you specified when you saved the file. You may not be able to see the ".txt" extension in Windows Explorer, since it hides the extension from you in its default configuration. Check the answer to How do I save the feedback form script in Notepad without the ".txt" extension? to learn how to solve this problem.

Why do I get a "cannot modify header information - headers already sent" for the Feedback Form PHP Script?

If you get a message to the effect that "cannot modify header information - headers already sent", it is possible that when you copied the PHP script to your text editor (eg, Notepad on Windows), you added blank lines to the file. The very first character of the file should be "<?" (without the quotes). If you have any blank lines (or any text at all) preceding those two characters, delete them.

This error is also a side-effect of other errors. If you are getting other error messages besides this, fix the problem caused by the other errors. To do that, read the relevant FAQ item for that error. Once you fix the other errors, this message will go away on its own (assuming you have not added any blank lines to the script).

A spammer is using my feedback form to send spam. How do I stop it?

If a spammer is using your feedback form to send other people spam, you need to upgrade your feedback form script to the latest version. To do this, simply return to the Feedback Form Script Wizard and generate a new copy of the script. Replace the existing copy of the script on your site with the new one. The current versions reject messages with injected email headers (which was how spammers were able to use the script as a relay previously).

Note that if you generated your script from this site prior to 28 February 2006, there's a chance that your script is vulnerable to being used as a spam relay. Please return to the wizard and generate the latest version to be safe.

Incidentally, the script will not protect you (the webmaster) from spam sent to you through your feedback form. After all, the script is designed to send you any mail sent by your visitors, junk or otherwise. To avoid spam yourself, consider setting up spam filters in your email software. Some web hosts also have spam filtering software set up in their email servers which you can activate in order to filter out junk mail.

Why do I not receive any mail when I run the feedback form script?

There are numerous possibilities for this. If you're getting the "Thank You" page after you run the feedback form script generated by the Feedback Form Wizard, but do not receive the mail sent, check the following:

  1. Are you using a free web host? Most free web hosts that allow execution of PHP or Perl scripts do not allow those scripts to send out mail. Solution: use a commercial web host. If you don't know which to choose, you can find the web host that I use on my Which Web Host Do You Recommend? (FAQ) page.
  2. Are you using a web host that restricts what a script may do? For example, some web hosts prevent PHP and Perl scripts from sending email messages where the "From:" header is from someone other than yourself. If you think this might be your case, note the error messages appearing in your error logs (eg, PHP error log) and search the FAQ for the section appropriate to your error message. If the error message reads "From address not in member domain", check the answer to 'Why do I get a "From address not in member domain" error?' elsewhere on this page.
  3. Did you modify the script yourself (such as to add more recipients, etc)? If you did, you might have introduced bugs into the script. Use the wizard and generate a fresh copy. Try this fresh copy without making any modifications to see if it works. If it does, the problem lies in your modifications.
  4. Are you sure you have waited long enough for the mail to be delivered? I've observed long delays in mail delivery when testing out certain free web hosts and free email services. If you think it's not your web host but your email service, try sending the messages to an email address that you know is reliable (and fast). Of course if it's your web host, you just have to be patient and wait.
  5. Did you check the Junk Mail or Spam folder in your mail software or your web email interface? It is possible that your email software or host has classified messages coming from your web host's mail server as spam.

If you're not even getting the "Thank You" page, you may have to make sure that your web host supports PHP or Perl CGI scripts in the first place. See also the sections on Why do I keep getting back my feedback form when I hit the submit button? and Why do I not get the Thank You page when I submit the feedback form?

Furthermore, if you are getting error messages when you run the script, check the relevant portion of this FAQ for the solution to your problem.

I have changed my email address. How do I get the form to send to my new email address?

Simply return to thesitewizard.com's Feedback Form Script Wizard and generate a new copy of the script with your new email address, and replace the existing version on your site with the new one.

Do you store a copy of the email address I enter into the feedback form wizard?
Do you intercept any of the email messages I receive from the feedback form?

No to both questions. The Feedback Form Wizard takes the email address you supply and plugs it into the script it generates for you. Your email address is not recorded anywhere, and does not show up in my web logs. Later when you upload the script to your web host, the mail is sent by your web host's computer directly to the email address embedded in the script. The mail is not routed to me or any other party.

Note that you do not have to trust me on this matter. Feel free to use some dummy email address in the Wizard, and then manually change it to your real email address on your own computer before you upload the script to your web server. You should, however, do this only if you are technically savvy and know how to modify scripts on your own. I will not bother to reply to messages requesting help on this: if you create a script that doesn't work because of your modifications, you're on your own.

Why do I not get my visitor's name and email address when I receive their message through the Feedback Form?

(Note: this question is for those who receive the email message when visitors submit their message but cannot find the visitor's email address and name. If you don't receive any email message at all, see the answer to Why do I not receive any mail when I run the feedback form script?)

Theoretically, you should be getting your visitor's name and email address. These are sent to you in the "From" header of the email message. They are also duplicated in the "Reply-To" header.

Some free web hosts, however, configure their system so that the "From" header always reflects the email address you gave to them when you signed up. They usually do this to prevent people using their system to spam others. If so, check to see if you can find the visitor's name and email address in the "Reply-To" header as well. Most email software as well as web mail sites allow you to view all the headers of an email message.

If they have modified the "Reply-To" header as well, my suggestion is to go with a better web host. Check out some of the commercial web hosts. Commercial web hosts usually do not play such tricks with your email.

You might also want to try putting a check in the box labelled "Use line feeds to separate email headers" in the Advanced Options section of the Wizard and regenerating the form again. Using this option might help to solve some rare cases where a deficient mail system wreaks havoc with the mail sent by the script, with the symptom that the "From:" header appears to be missing (from the point of view of your email software).

UPDATED (27 February 2006): The latest version of the feedback form script generated by Feedback Form Wizard also embeds your visitor's email address and name in the message body itself, so you should always be able to read your visitor's name and email address even if it is missing in the "From" header.

Why does the Feedback Form script send me an email that does not have any of the comments that my visitor submitted?

Starting with version 2.0 of the Feedback Form Wizard and Script, the PHP feedback form script requires your web host to have PHP 4.1 or above. Check with your web host to find out if this is the case. The feedback form script will not work correctly with PHP 4.0 and below. On PHP 4.0, it will probably be able to display the Thank You page and send you an email message, but that email message will not contain any of the information that your visitor sent.

Why do I keep getting back my feedback form when I hit the submit button?

If you are seeing the contents of the feedback form script itself, your web server probably does not support Perl or PHP. Free web hosts and the free hosting that comes with your ISP (eg AOL) usually do not provide Perl or PHP facilities. Sign up with a commercial web host instead.

If you are using the Perl version of the feedback form and are sent back to the feedback form page after submitting, chances are that you entered the path of the feedback form script into the "Path of sendmail binary" field of the Wizard. That is, you probably entered something that ends with "chfeedback.pl" or "chfeedback.cgi". This is incorrect. You have to find out from your web host where they put their sendmail binary. It's usually in their documentation somewhere.

If you are using either the PHP or Perl version, you must make sure that the URLs you enter for the "Thank You" and "Error" pages are different from the URL you enter for the "Feedback Form". If you entered your feedback form URL for your "Thank You" page, your visitors will be taken to your feedback form after they send their message.

Why do I not get the Thank You page when I submit the feedback form?

There are a few possibilities for this.

  1. Did you modify the script in some way? If you did, you might have introduced bugs into the script. Use the wizard to generate a fresh copy. Try this fresh copy without making any modifications to see if it works. If it does, the problem lies in your modifications.
  2. Are you sure your web host supports PHP or Perl scripts? If it doesn't, you may have to use a commercial web host. You may also want to read up on which web hosts I use for my sites for some opinions.
  3. If you keep getting the feedback form again after you submit the form, see also the answer to Why do I keep getting back my feedback form when I hit the submit button?
  4. If you get a "File Not Found" error instead of your Thank You page, see the answer to Why do I get a "File Not Found" error when I submit my form?
  5. If you are getting some other error message, please search for that error message in this FAQ and read the solution to it. Return to the top of this page and look through the contents again.
How do I insert the HTML code for the form into my web page?

If you are trying to insert the HTML form code into your web page, and find that instead of getting the form fields on your web page, you get the HTML code being displayed, it means that you are inserting the code into your page using your web editor's What-You-See-Is-What-You-Get (WYSIWYG) interface. Essentially, you need to either switch to the editor's raw HTML editing mode or, alternatively, use your editor's facility to insert HTML code into your web page.

How do I upload the feedback form to my website?

See the article How to Upload a File to Your Website Using the FileZilla FTP Client.

How do I add more fields to the feedback form script?

You will have to do this manually, yourself. If you are using the PHP script, I explain how this is done in my two PHP tutorials, How to Write Your Own Feedback Form Script and Improving Your Form to Mail (Feedback Form) Script. But remember: if you break my script with your modifications, you will have to fix it yourself.

I've modified the form, and now there are problems. Can you help me?

Sorry, I don't have the time.

How do I save the feedback form script in Notepad without the ".txt" extension?

Before you upload your feedback form script, check to make sure that the script is saved with the correct filename. For the PHP script, the filename should be "feedback.php". For the Perl script, the filename should be "chfeedback.pl". If your file is saved with a name like "feedback.php.txt" or "chfeedback.pl.txt", the script will not work. If this applies to you, you're probably trying to save the file on a computer running Windows.

To fix the error, open Windows Explorer (also known as "My Computer" on the Windows desktop and the Start Menu). Navigate to the place you saved the file. Click the "Tools" menu on the menu bar in Explorer (the menu bar is at the top of the Explorer window, underneath the window title). Click the "Folder Options" item in the popup menu that appears. A dialog box appears. Click the "View" tab at the top of the window. Look for a setting "Hide file extensions for known file types" and uncheck the box beside it to disable it. Click "OK".

You should now be able to see your file as "feedback.php.txt" or "chfeedback.pl.txt". Now click once on the filename. Explorer will now allow you to change the filename. If this is not true, select the filename and hit the F2 key on the keyboard. Delete the ".txt" extension, leaving the filename as "feedback.php" (without the quotes) or "chfeedback.pl" if you're using the Perl script. Make sure there are no trailing dots or spaces - that is, make sure the filename is really "feedback.php" and not "feedback.php." with a trailing dot or the like.

When you hit the ENTER key, Windows will issue a warning about the dangers of changing filenames. Allow the name change to take place.

If you are interested, a more detailed account of this, along with how you can avoid this problem in future, can be found in the article How to Save a File with Notepad Without the TXT Extension.

How do I get the feedback form script to work in Google Page Creator?

You can't. As made obvious by the wizard, when you were asked to select the PHP version of the script if your host supports PHP, or the Perl version if your host supports Perl, you need a web host that supports either PHP or Perl (or both). As far as I can tell, Google Page Creator supports neither. Get a commercial web hosting account instead. Incidentally, you may want to read my article on why it's better to use a true web editor than a site builder.

Help! My Feedback Form doesn't work. Can you tell me why?

Please read this page (the page you are looking at) for the answer.

Incidentally, vague questions like the above are of no use. You need to define problem more specifically (eg, what error messages you got, what happened when you submitted the form, whether you received any email when you submitted the form, whether the Thank You page was displayed, etc). Being more specific will help you locate the answers on this page.

Copyright 2000-2008 by Christopher Heng. All rights reserved.
Get more free tips and articles like this, on web design, promotion, revenue and scripting, from http://www.thesitewizard.com/.

If you find this article useful, please consider making a donation.

thesitewizard™ News Feed (RSS Site Feed)  Subscribe to thesitewizard.com newsfeed

Do you find this article useful? You can learn of new articles and scripts that are published on thesitewizard.com by subscribing to the RSS feed. Simply point your RSS feed reader or a browser that supports RSS feeds at http://www.thesitewizard.com/thesitewizard.xml. You can read more about how to subscribe to RSS site feeds from my RSS FAQ.

Please Do Not Reprint This Article

This article is copyrighted. Please do not reproduce this article in whole or part, in any form, without obtaining my written permission.

Related Pages

New Pages

Popular Pages

How to Link to This Page

It will appear on your page as:

Frequently Asked Questions (FAQ) about the Feedback Form Wizard






Home
Donate
Contact Us
Link to Us
Topics
Site Map

Getting Started
Web Design
Search Engines
Revenue Making
Web Hosting
JavaScripts
PHP
Perl / CGI
CSS
.htaccess / Apache
Newsletters
General
Seasonal
Reviews
FAQs
Wizards

 

 
Free webmasters and programmers resources, scripts and tutorials
 
HowtoHaven.com: Free How-To Guides
 
Site Design Tips at thesitewizard.com
Find this site useful?
Please link to us.