|
|
| POLL IN ASP BASED ON TEXTFILE |
|
I will in this tutorial show you how to make a poll where I store the data in a
textfile.
|
Making the Poll
|
|
I make three radio buttons that you can choose from and then vote. The vote will
be registered in a textfile. I split this into three files, one display.asp that
allows you to vote, one vote.asp that inserts the voted result into the textfile and
stats.asp where you can view the votes.
|
vote.asp
|
When you will vote, you have to get the content of a textfile, and
then add one to the one you have voted. The textfile have to contain following
text to begin with: 0||0||0
In my file I redirect back to the stats.asp, to view what others have voted.
|
|
|
stats.asp
|
|
Here you can view the stats that have been voted. You get the variables from the
textfile as shown below. How you write this to your web site is just your
imagination that sets the limits.
|
|
|
Download This Project
|
Category
|
Programming with ASP
|
|
Author
|
Tommy Johannessen
|
|
|
|