473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

One vote per IP Address

nitindel
hey guys..!!!

I am making a voting form in ASP VBScript

before moving to production server..i want to have the following enhancement...


Only one vote is allowed per person..I am thinking of catching the IP address and resticting him/her to vote more than once.

having alert message('You have already voted..!!')

so please can i have the scripts for this..as soon as possible..


Regards
Nitin Sharma
Software Engineer
Jan 8 '08 #1
2 1914
jhardman
3,406 Expert 2GB
hey guys..!!!

I am making a voting form in ASP VBScript

before moving to production server..i want to have the following enhancement...


Only one vote is allowed per person..I am thinking of catching the IP address and resticting him/her to vote more than once.

having alert message('You have already voted..!!')

so please can i have the scripts for this..as soon as possible..


Regards
Nitin Sharma
Software Engineer
When ever someone votes you will need to check request.serverVariables("remote_addr") - this will give you their IP. You may then open a text file and append this to the end of the file or search through the file to see if it is already there. Alternatively this can be saved in a db or an XML file, the choice is up to you. Another approach entirely would be to save a cookie on the user's machine that says he already voted. That might be an easier approach.

Jared
Jan 8 '08 #2
Any other answers Please..!!!

Nitin Sharma
Software Engineer
Jan 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Otis Green | last post by:
Vote for or against a new newsgroup proposal. To summarize what you need to do, just send an empty e-mail to postgresql-ballot@netagw.com You will receive a ballot by e-mail. Follow the...
8
by: William Drew | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.databases.mysql This is an invitation to discuss the following proposal to create newsgroup comp.databases.mysql. Please note that YOU...
14
by: Otis Green | last post by:
Vote for or against a new newsgroup proposal. To summarize what you need to do, just send an empty e-mail to postgresql-ballot@netagw.com You'll receive a ballot by e-mail. Follow the...
1
by: Denis Van der Heyden | last post by:
Hi, I have a friend who creates non-professional films and he is actually on a german website. I want to vote for him a lot of time,and I would need to create a shortcut for the vote. When we...
4
by: BARD ROCK | last post by:
It is now time to cast your vote as to whether you would like these mailing lists to become legal USENET newsgroups. To vote, visit this web page: http://party.to/bardrock Fill out the...
6
by: Showjumper | last post by:
I have built a rating server control. Whats the best way to ensure one vote per person? Check IP Addresses and allow 1 vote per IP address or via cookies? Thanks Ashok
1
by: Dogandpony | last post by:
Our local club has about 15 Board members, and we vote online using a mySQL/php web interface. I have several different queries/results that I print which show varying displays of...
5
by: paitoon | last post by:
Hello, I have problem to add vote to the data base . In the form i have radio button to choose to rate the score 1 2 3 4 5 ....and when i click to submit this the score in database is changed by...
1
by: vote4amin | last post by:
Dear frens, Need your help to spend a minute of your time to vote for my little boy in Cutefam 2008 contest. Please click --->>> http://www.thelilcaliph.com/CuteFam2008/voteWithCodes.html to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.