Important alert: (current site time 7/15/2013 11:24:50 AM EDT)
 

winzip icon

cfPoll

Email
Submitted on: 6/5/2010 9:11:14 AM
By: Chris Flanigan  
Level: Intermediate
User Rating: By 10 Users
Compatibility: PHP 4.0, PHP 5.0
Views: 21822
 
     Allows the user to have a poll on their site. This also limits voting to once per IP.
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
// for :cfPoll
//**************************************
Copyright Chris Flanigan
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 7 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
5/9/2001 5:29:51 PMnukem

This is very kool but your forgetting one thing, people ip's get changed. So i could vote for one thing redial and vote another time.
(If this comment was disrespectful, please report it.)

 
5/9/2001 6:15:47 PMChris Flanigan

I haven't forgotten that at all. Think about this though. Say your IP is 250.250.250.125. If I make it so that when your IP changes, you still can't vote I'd have to block 250.250.250.*. This would mean ANYBODY else on your IP block couldn't vote just because you voted. If a person wants to keep dialing in and voting, then that's their business. I mean, that's a nickel a call...so they're losers anyway.

I made it like that for a purpose, I didn't forget it at all. :)
(If this comment was disrespectful, please report it.)

 
5/31/2001 11:17:31 PMSulaiman

Let say one internet access is shared, to is't means that only one of the users whom shares the account can't vote?
(If this comment was disrespectful, please report it.)

 
11/29/2001 4:00:00 PMbfuzz

I got a problem, I set it up on http://anox.f2s.com/fatness/poll/poll.php and when I vote it records my IP as 127.0.0.1, which stops everybody from voting, I could remove the ip record, but I wanted that.
Any Ideas?
Thanks,
Fuzz
(If this comment was disrespectful, please report it.)

 
11/29/2001 4:00:48 PM-New_Kid-

Sorry that address was wrong, it's at http://www.anox.f2s.com/fatness/poll/poll.php
(If this comment was disrespectful, please report it.)

 
1/11/2002 12:46:34 PMCornelius

I'm new to PHP, but are you viewing a locally cached copy of the page?
(If this comment was disrespectful, please report it.)

 
11/17/2002 9:04:37 AM

Very configurable code
I liked it a lot, as I do with php generally -manageable and easy to adapt: I just want to say "thank you", I've given you an 'excellent' rating and you may be interested in seeing your code in ACTION, developed into this;- http://photophysics.sbu.ac.uk/~guest/Forum/poll.php Simon. If you want the full source code for this, then you are MORE THAN welcome
(If this comment was disrespectful, please report it.)

 
11/19/2003 3:33:54 PM

Nice Script man :) Great job
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.