How to use ASP to establish a voting mechanism in your own website (1)
Translation
A very good ASP program for building your own voting system, everyone can read it carefully, as long as you understand the key technologies in the middle, you can build your own polling station on your own website. The document is consolidated very rush, I hope everyone can understand. Copyright: ASP Pollsversion 1.0Tipped Cow Development and Adrenalin Labs structure brief: ACCESS database design structure: poll main table Field Name: PollName, PollCreator, PollQuestion, Password, Choice1, Choice2Choice3, Choice4, Choice5, ID (automatic number), GetNamepollresults Table field: Pollid, Pollaanswer, Name1. File db.inc <% Application ("ASP_POLL") = "ASP_POLL" CNSTRING = "Driver = {Microsoft Access Driver (* .mdb)};" cnstring = cnstring & "dbq =" & Server.mappath ("Events.mdb") Application ("asppolldsn") = cnstring%> 1. File Creat_pol1.asp <% title = "Poll generator"%>
<% Response.write "" If Request ("ErrorMessage") <> "" TenResponse.write " Error! B>" & request ("ErrorMessage" Elseresponse.write "please Complete the form below to beg, your ing. "End IF%>