How to Put Multiple Feedback Forms on One Website

Guide to putting up more than 1 contact form on your site


How to Put Multiple Feedback Forms on One Website

by Christopher Heng, thesitewizard.com

From time to time, I am asked whether it is possible to put multiple copies of the contact form created by the Free Feedback Form Wizard on a single website. This article shows you how to do this.

Reasons for Two or More Feedback Forms on a Website

The reasons why anyone would want more than one feedback form on a single website vary from person to person. Very often, it is because the webmaster has a site with different sections run by different people. As such, it makes sense to have a separate feedback form for each of these people.

If your website is a solo endeavour, where you're the only person your visitor needs to contact to get anything done, you don't need to read this article. Instead, go to one of the following tutorials to learn how to add a feedback form to your website.

(Just choose the one matching the web editor that you're using to create your website.)

For those who have just arrived at thesitewizard.com, and don't actually have a website yet, I recommend that you start by reading the How to Start / Make Your Own Website: The Beginner's A-Z Guide. The guide takes you through all the steps of creating a fully functional website, including your own feedback form.

How to Put 2 or More Contact Forms on Your Website

The basic idea is to create a separate folder for each feedback form you need. If you want to see a live example of one way to do this, see the Feedback Form Demo Website. Here, the normal feedback form demo is found in the main directory, while the demo with the CAPTCHA test is placed in the "captcha" folder.

To be exact, the folder structure for the 2 feedback forms on the demo site (at the time this was written) is as follows:

  1. The Standard Feedback Form Demo Files

    • The form page: http://www.fbdemo.com/feedbackdemo.html
    • The thank you page: http://www.fbdemo.com/thankyou.html
    • The error page: http://www.fbdemo.com/error.html
  2. The Feedback Form with CAPTCHA Test Files

    • The form page: http://www.fbdemo.com/captcha/index.html
    • The thank you page: http://www.fbdemo.com/captcha/thankyou.html
    • The error page: http://www.fbdemo.com/captcha/error.html

Notice that the standard form has its own set of pages, form page, thank you page and error page, all contained in the main web folder. Likewise, the set of pages for the CAPTCHA form is separate and distinct, and placed in its own folder (the "captcha" folder) as well.

You are not restricted to having only 2 sets of forms of course. You can always create a new set of form.html, thankyou.html and error.html (or whatever filenames you prefer) for every person you want linked to from your website. For example, you can make it such that Tom can be reached from www.example.com/tom/form.html, Dick from www.example.com/dick/form.html and Harry www.example.com/harry/form.html. And so on.

Two very important things to note about this method:

  1. You must return to the Feedback Form Wizard and generate a separate script for each of the different people. You CANNOT generate the script once and dump the same script into different directories and expect it to work the way you want. This is because the wizard creates a customized script for you each time, with the email address and the web addresses for the form, thank you page and error pages embedded into the script and form. If you simply copy the same script into a separate folder, the copy in the new folder will still send the message to the original email address and invoke the old Thank You and Error pages.

  2. You must put each form and script in its own separate directory. You cannot dump all the forms and scripts into the same directory, otherwise all the forms will invoke the same script to send your mail.

An example will, hopefully, make it clearer. Let's say you want to create 2 sets of forms, one for Tom and one for Harry. For the first form, go to the form wizard and enter:

When the wizard returns its results with the form code and script, use the code and script generated for you in the usual way to create the pages in Tom's directory at www.example.com/tom/. (If you don't know what "the usual way" is, please read the tutorials given in the first section of this article, above.)

Now for Harry's form, return to the form wizard and enter:

Notice that every single entry is different from Tom's, that is, not just the email address, but the web addresses as well.

Use the code created by the Wizard to create Harry's form and script. Let me say that again. You have to use the new code generated by the wizard for the form and script. Don't reuse Tom's script. Don't reuse Tom's web page containing the form. [Actually the form code, at the time I write this, will be the same provided you don't enable the CAPTCHA facility and use different ReCAPTCHA keys for different people. But to be safe, don't reuse anything (just in case I change something in the wizard).]

(You can reuse the content of the "Thank You" and "Error" pages if you want, since those pages aren't generated by the form wizard anyway.)

I know I am saying the same thing over and over again in different ways. But this is because reusing the old script and putting everything into the same directory are two of the most common errors visitors make when they carry out the above procedure. So don't take shortcuts, or your forms won't work as intended.

Can I point to the same Thank You and Error Page?

If you want the script to send your visitors to the same Thank You and Error pages no matter which form on your site they use, simply enter the same web address (URL) for those pages each time you create a new form and script.

Again, note that this only applies to the Thank You and Error pages. You must have a different URL for the feedback form page.

Can I link a name to specific form?

If you have different people for visitors to contact, it's a simple thing to make the name of each person a clickable link pointing to a different form. For example, I have made the following link, Christopher, point to thesitewizard.com's feedback form. Basically, it's the same as creating a link to any other web page on the Internet. The method to do this vary depending on which web editor you use. For example, here are some tutorials for the common web editors:

Conclusion

As you can see, the process for using multiple feedback forms on one site is not complicated. The feedback form wizard handles all the programming wizardry for you, so all you need to do is to place the results in different folders.

Copyright © 2009-2012 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/.

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 Articles

Popular Articles

How to Link to This Page

It will appear on your page as:

How to Put Multiple Feedback Forms on One Website





Home
Donate
Contact Us
Link to Us
Topics
Site Map

Getting Started
Web Design
Search Engines
Revenue Making
Domains
Web Hosting
Blogging
JavaScripts
PHP
Perl / CGI
HTML
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.