Use ASP to create a personalized survey Board

Source: Internet
Author: User
Currently, surveys on the Internet are very common. Many commercial websites often have Survey boards with various themes. Some commercial websites also provide survey boards for users for free, such: poll.bodachina.com ). Because of the popularity of the Internet, online surveys often achieve better results. Placing a fun problem investigation board on your personal website can really improve your website. Moreover, you can learn more about your site's views through the survey results. As a Webmaster, if your website also needs to investigate a specific topic, and you hate to use the survey board provided by others for free (free is often at a cost, such as advertising !), So I suggest you spend ten minutes reading this article about how to use ASP to create a survey board. You just need to Copy the code in the text to your machine and make some modifications, and you will have your own personalized survey board immediately. Let's get started.
The survey board consists of three files: Display the survey question (research.html), process the user selected (select. asp), and view the survey result (viewresult. asp ). The design concept is: ASP obtains the information sent from the form, modifies the database to record the number of votes to be investigated, ASP reads the database, and obtains the number of votes for each survey question, you can adjust the width of the corresponding bar chart to display the survey results in a proportional manner. At the key of the program, I have provided more detailed comments, so I will not describe the basic knowledge of ASP here. Readers can refer to the Tao ba asp column. Of course, when I want you to debug a program on your own server, check the ASP Technical Manual and try to modify the detailed syntax of the object, method, or function, let's see how the results change-this is a good way to learn programming.
    
1. Display survey question (research.html)
    
The design of the survey should be based on the actual situation, or practical or interesting. The style displayed on the webpage is also simple or lively, in this example, what is the most important thing on the author's homepage?" In order to illustrate the problem, the code below omits the beautifully decorated code. You can use tables and other techniques to beautify the display of the problem during your own design. In order that the current page is not affected when you submit or browse the survey, a new window is displayed in the program.
Researchindex.html:
    
<Html>
<Title> Survey Board test </title>
<Head>
<! -- Start: define a new window -->
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.