Some of the previously collected information---How to use ASP to establish voting mechanisms on its own website (1)

Source: Internet
Author: User
Tags access database
A very good ASP program to build your own voting system
Read it carefully, as long as you can understand the key technologies in the middle
will be able to set up their own polling stations on their own website.
The papers were hastily sorted out and I hope you will understand.
All rights reserved:
ASP Polls
Version 1.0
Tipped Cow Development and adrenalin Labs
Structure Simple Introduction:
Access database design structure:
Poll table primary field name: Pollname,pollcreator,pollquestion,password,choice1,choice2
Choice3,choice4,choice5,id (AutoNumber), GetName
Pollresults table fields: Pollid,pollanswer,name
1. Document Db.inc
<%
Application ("asp_poll") = "Asp_poll"
cnstring = "Driver={microsoft Access DRIVER (*.mdb)};"
cnstring = cnstring & "dbq=" & Server.MapPath ("Events.mdb")
Application ("asppolldsn") = cnstring
%>
1. Document Creat_poll1.asp
<% title= "Poll Generator"%>
<title><%=Title%></title>
<body>
<div align= "left" ><br>another joint product from <a href= "Http://www.ncws.com/tippycow" >tipped Cow development</a> and <a href= "http:// Dstoflet.calweb.com ">adrenalin labs</a>
<br><br>
</div>
<center>
<%
Response.Write "<font face= ' Arial ' >"
If Request ("errormessage") <> "Then
Response.Write "<b>error! </b> "& Request (" ErrorMessage ")
Else
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.