Create, Collect, and Analyze Surveys and Web Forms

Survey Software from WISCO Computing
WISCO Survey Tutorials - Create Web Survey Forms

This is the WISCO Survey step-by-step tutorial for creating and uploading the web survey HTML and script files on a web server. WISCO Survey creates all the files. The completed files, which are saved to your hard drive are ready to uploaded by FTP to your web site.

Your web host must allow the use of HTML forms and scripts on your web site. The script converts the survey responses on the HTML form to an email message. Your web host usually provides a mailing program located on the web server, that sends the email message containing the responses to you. If you do not know what your host provides, check the web host site, or send an email asking for this information. This information is inserted in the HTML code and the ASP or Perl CGI scripts. Over 90% of all web sites are hosted on Unix servers. This tutorial uses SendMail on a Unix server, or CDOSYS on a Windows server. Most of the time, a Unix server uses all lowercase letters for filenames. Additional Web Server Information is available.

  • Windows XP®, Windows Vista®, or Windows 7®
  • About 9MB of hard drive space is needed for the basic program and help files. Additional drive space will be needed for your survey questions and response data files.
  • Minimum Memory - 512 MB RAM - Additional memory results in better performance
  • Internet Connection - to upload your surveys to your web site, and receive email survey responses
  • Outlook or Outlook Express - to collect survey responses

Questions to Ask your Web Host

What mail options are provided by the web host?

  • Unix with Form Mail
  • Unix with SendMail, and Perl Script
  • Windows Server with CDONTS and ASP script
  • Windows Server with CDOSYS and ASP script

If your web site is hosted on a UNIX server:

  • What is the URL location of SendMail? (Default = /usr/lib/sendmail -t -n -oi)
  • What is the URL location of Perl? (Default = /usr/local/bin/perl)
  • What should the URL location of your Perl script be? (default = cgi folder)

If your web site is hosted on a Windows Server:

  • Should the domain or the Mail IP address be used?
  • If the Mail IP address is used, what is it?
  • What should the URL location of your Perl script be?

Web Survey Selection tab

  1. From the Internet Menu, select Web Survey Creation.
  2. Click the Selection tab.
  3. Enter the subject line of the email responses 'My Tutorial Responses' in the edit box.
  4. Enter a valid email address to receive the emailed responses.
  5. These emails will be read by either Outlook or Outlook Express.
  6. Check any options to be included with your web survey. A plain thank you page can be created automatically if the Create Generic Thank You HTML page is checked.
  7. Click the 'Save Settings' button. We are done with the Selection tab page for now, but will come back to this page to update the final web survey HTML code, and script information.

Web Survey on a UNIX Server

  1. Click the Web Server Information tab to change pages
  2. Click the radio button indicating the Unix server and Mail option used by your web host.
  3. Your selection will gray out edit boxes that are not used by your option.
  4. Fill in the edit box URL Location of Sendmail (Default /usr/lib/sendmail -t -n -oi)
  5. Fill in the edit box Location of Perl (Default = /usr/local/bin/perl)
  6. Fill in the edit box Location of your Perl Script (Default = http://www.yourdomain.com/cgi/mytutorial.cgi
  7. Your Perl script (cgi file) is NEVER located in the same folder as your survey files.
  8. With this example, the name of your perl cgi script is mytutorial.cgi The CGI script will process the survey responses, and email that information using the subject line and email address you entered on the Selection tab page. The CGI script created by WISCO Survey will also include instructions to display a Thank You page to be displayed after the survey submit button is pressed. (Some web servers require the extension to be .pl
  9. Each survey on your web site requires a different CGI script filename, (and should have a different subject line).
  10. Fill in the edit box Location of your thank you page (Default = http://www.yourdomain.com/thanks.htm
  11. Click the 'Save Settings' button to save all the information that was just entered. This information will be used the next time you create an web survey.
  12. For other surveys, the only item you'll need to change is the name of the perl cgi script, and different email subject line).

Web Survey on a Windows Server

  1. Click the Web Server Information tab to change pages.
  2. Click the radio button indicating the Windows server and Mail option used by your web host. (usually CDOSYS with ASP script).
  3. Your selection will gray out edit boxes that are not used by your option.
  4. Fill in the edit box Location of your thank you page (Default = http://www.yourdomain.com/thanks.htm
  5. Fill in the edit box with the ASP Script Filename with the ASP extension.
  6. With this example, the name is mytutorial.asp The ASP script will process the survey responses, and email that information using the subject line and email address you entered on the Selection tab page. The ASP script created by WISCO Survey will also include instructions to display a Thank You page to be displayed after the survey submit button is pressed.
  7. The ASP script and web survey HTML form CAN BE be in the same folder.
  8. Each survey on your web site requires a different ASP script filename, (and should have a different subject line).
  9. Enter your domain name, without the http:// or www. prefixes (for example smtp.yourdomainname.com). On some windows servers, your numerical IP address is needed. On some windows servers, port 25 must be included with the IP address (for example 123.456.789.123:25) Check with your network administrator for your specific requirements.
  10. Click the 'Save Settings' button to save all the information that was just entered. This information will be used the next time you create an web survey.
  11. For other surveys, the only item you'll need to change is the name of the ASP script, and different email subject line).

Creating the Final Web Survey Files

Click the Create button to update the HTML survey code and the script. The information you entered on these two pages will be merged into the script and HTML files that are created. The Create button must always be clicked to recreate the HTML survey and script after any settings are changed.

Saving and Uploading the Web Survey Files

The Save All Pages button saves the HTML code to an HTM file. When the file is saved, the opening and closing HTML codes are added to create a complete HTML document. The background color of the HTML page is not saved with the file so it can be modified to match your existing web page style. If code has been entered on the Perl CGI-ASP page, that will also be saved in a separate file, using the filename entered on the Web Server Information tabbed page of this window. If the check box to create a generic Thank You page is checked, that will also be saved.

The web files are ready to be uploaded by FTP to your web site. Your files can be uploaded to your web site with the integrated Web Survey FTP menu selection or with a separate FTP program, for example, WS-FTP. The CGI script file uploaded to a UNIX Server must be uploaded using ASCII, not Binary.

When all of your files are uploaded to the server, and in the proper locations, you are ready to test your survey. Use your Internet browser to go to your web site, change to your survey directory, and enter your survey filename (mytutorial.htm). Your web survey should be displayed. Enter responses and click the Submit button. The script should process the survey responses, send an email, and display your Thank You page in your browser. Then you should check your email. Your email will include the responses from your web survey.

Server settings tend to be server-specific. Since WISCO Computing does not have access to your server, we can not provide technical support with regard to setting up formmail, sendmail, ASP scripts, perl cgi scripts, CDONTS, and CDOSYS on your server. Your web server administrator (host) should be able to tell you the location of your mailing program on your web server, and provide the specific help you need.