All source code in ASP/ VbScript Ask a ASP/ VbScript Pro Discussion Forum Categories All jobs in ASP/ VbScript
SSI,Voting,poll,withcookie,protection,blockin
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 287,569. lines
 Jobs: 118. postings

 How to support the site

 
Sponsored by:
Quick Search for:  in language:    
You are in:
 
Login


 

 


Latest postings for ASP/ VbScript.
A simpla ASP Login & Logout Page of E-commerce website for Registred Users
By SJPVTLTD.COM on 2/2


A simplem ASP Login Page for Registered User
By SJPVTLTD.COM on 2/2


Click here to see a screenshot of this code!The Real Estate - Search Engine
By Talal Hussain Al-Balushi on 2/1

(Screen Shot)

A simple ASP Registeration Page for E-commerce Website
By Tejas Jayantilal Gandhi on 1/28


A simple ASP Forgot Password page for E-commerce Website
By Tejas Jayantilal Gandhi on 1/28


Simple ASP inquiry form for a simple or e-commerce website
By Tejas Jayantilal Gandhi on 1/28


A Simple ASP Change of Password Page for E-commerce Website
By Tejas Jayantilal Gandhi on 1/28


Click here to put this ticker on your site!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

E.Z.Poll v.2

Print
Email
 
winzip icon
Submitted on: 1/21/2002 11:19:26 AM
By: Egi Zaberl  
Level: Intermediate
User Rating: By 19 Users
Compatibility:ASP (Active Server Pages), HTML, VbScript (browser/client side)

Users have accessed this code 26586 times.
 
author picture
 
     Voting poll with: cookie protection, ip blocking, poll start and poll end date, last chance to vote banner, previous polls, full administration with password protection (adding/editing/deleting polls, adding/editing/deleting admin/moderator users). Admin user can add/delete/edit poll (it has status 1), moderator (status 2) can only add poll (email is sent to admin that new poll is in the database). main poll site is poll_inc.asp which is included in main_site.asp like SSI (integration on your site). You must include <!--#include file="poll_inc.asp"--> in your site, javascript and css stylesheet... see poll.txt. Setings: You must set write/modify permissions for the folder in which is database (for guest acc) If database is not in folder fpdb (www.yoursite.com/fpdb/poll.mdb) then change the line - server.MapPath ("fpdb/poll.mdb"). Poll uses MS Access 2000 database.

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!

    '**************************************
    ' for :E.Z.Poll v.2
    '**************************************
    (c)2002 by E.Z.
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 2 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify 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
1/22/2002 1:16:08 AMEgi

username/password for administration is admin/admin (administrator) or test/test (moderator)
(If this comment was disrespectful, please report it.)

 
1/22/2002 3:17:48 AMAlex Maddern

Thats better... <wink> Excellent
(If this comment was disrespectful, please report it.)

 
1/23/2002 3:48:58 AMEgi

Please vote and write comments so i can create even better poll...
(If this comment was disrespectful, please report it.)

 
2/11/2002 6:04:27 AMMat Danahy

you could cookie the admin login so you don't have to keep re-entering the password ... Other than that it seems pretty cool ..
(If this comment was disrespectful, please report it.)

 
3/3/2002 10:25:26 AMDaniel Caceres

Any version in MS SQL?
Thanks,
DC
(If this comment was disrespectful, please report it.)

 
4/28/2002 4:39:45 AMAlex Maddern

MS SQL Port should be as simple as using DTS for schema transfer and then changing the ADO Connection String.

Nice work mate.
(If this comment was disrespectful, please report it.)

 
5/26/2002 12:19:51 PMAlex Wied (PcExpert)

Your program doesn't work. I type admin/admin and after I press enter, the boxes go blank and redirects it self
back to the login page. It's doesn't say wrong password or anything.
(If this comment was disrespectful, please report it.)

 
6/10/2002 10:04:18 AMEgi

do you set permisions on the database ? read/write for internet guest acc.
This poll is working.. tested from diferent people..
(If this comment was disrespectful, please report it.)

 
11/1/2002 12:12:31 AM

All seems to work well, and I have set a poll to active as an administrator. Sole problem is that the poll on my desired page says 'No active poll'. Can you help?
(If this comment was disrespectful, please report it.)

 
11/4/2002 2:25:51 AMEgi

did u set the dates for the poll correctly ? start date and end date..
(If this comment was disrespectful, please report it.)

 
11/14/2002 11:00:54 AM

Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression.
/admin-update.asp, line 107
Could you help me?
(If this comment was disrespectful, please report it.)

 
11/24/2002 9:13:48 PM

HI, nice Poll, how do I turn off IP Blocking, but leave cookies on?
(If this comment was disrespectful, please report it.)

 
11/24/2002 9:14:41 PM

Hi, how do youturn off IP Blocking and leave cookies on? Can I just comment out some code, can you show me?

Cheers
(If this comment was disrespectful, please report it.)

 
11/27/2002 8:34:45 AMEgi

turn this ....
---------------------------
if not rs_IP.eof or cookie_id = Cstr(poll_id) then
-------------------------------
to this ....
------------------------------
if cookie_id = Cstr(poll_id) then
-----------------------------
and this ....
-----------------------------
If cookie_id = Cstr(poll_id) or Request.form("voteFor") = "" or not rs_IP.Eof then
------------------------------
to this .....
------------------------------
If cookie_id = Cstr(poll_id) or Request.form("voteFor") = "" then
------------------------------
this code is in poll_inc.asp file
(If this comment was disrespectful, please report it.)

 
12/4/2002 12:29:10 PMcbennett08

anyone else having a problem with viewing the gifs that are with this? i get an error that file cannot be determined when trying to view them.. i have no other problems with any other gifs..


(If this comment was disrespectful, please report it.)

 
12/18/2002 7:49:38 AM

whay submit not work all i get is -
The page cannot be displayed-??
(If this comment was disrespectful, please report it.)

 
1/3/2003 12:49:37 PM

For some reason, it wont let me add a poll. I've already checked all the paths, and it's in the right directory....
(If this comment was disrespectful, please report it.)

 
2/20/2003 12:17:20 PMlem230

When I try to add a user or poll, I get
(If this comment was disrespectful, please report it.)

 
2/20/2003 12:18:04 PMlem230

Hello,

When I try to add a new user or poll, I get the following message:

******************
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
**************************

Any suggestions?

Thanks
(If this comment was disrespectful, please report it.)

 
3/7/2003 11:37:49 AM

Nice piece of code, worked fine with no problems. Maybe you can modify it for using multiply polls in next version.
(If this comment was disrespectful, please report it.)

 
3/17/2003 11:53:13 AM

Great Code! I am having trouble using it with Netscape though (V4.73). Any suggestions on how to make it work with Netscape? (unfortunately upgrading Netscape is not an option)
(If this comment was disrespectful, please report it.)

 
4/5/2003 5:56:15 AMJon Yee

Hey, there seems to be a broken link of your E.Z. Poll v2 on the planet-source-code website. Could you pls send me your updated copy or the copy that you have of this EZ poll at papmech@yahoo.com.sg? Thx
(If this comment was disrespectful, please report it.)

 
4/7/2003 1:42:16 AM

Quite a nice work of coding. Very easy to understand & set-up.
Only one concern though, when running the code from from the default page (i.e. http://www.DOMAIN.com/) it seems to encounter an error. However, running the code from, say, http://www.DOMAIN.com/default.asp , everything works great. Any reason for this?
(If this comment was disrespectful, please report it.)

 
5/20/2003 12:33:00 PMganesh

it gives following error
you should use updateble query

(If this comment was disrespectful, please report it.)

 
5/31/2003 12:11:40 AM

Very Nice. Looks nothing but professional, and easy to implament.
(If this comment was disrespectful, please report it.)

 
6/14/2003 12:23:14 AM

Terrific job. I dropped it in a folder, gave the db permissions and it worked like a champ.
(If this comment was disrespectful, please report it.)

 
8/11/2003 10:10:06 AM

Your poll works very well, however I have one small problem. If I try to put this on my home (index.asp) page it doesn't work. The way I'm understanding it is that it appends the poll info. to the URL and then redirects you back to the original page. I have put the poll on another page in my site and it works, so the problem I think is that my index page doesn't show in the address bar and it just appends the info. to (http://www.mysite.com/?...) instead of (http://www.mysite.com/index.asp?...) Does this make sense and is there a fix for this that you know of? Any help would be appreciated. Thank you.
(If this comment was disrespectful, please report it.)

 
8/11/2003 10:12:47 AM

Your poll works very well, however I
have one small problem. If I try to put
this on my home (index.asp) page it
doesn't work. The way I'm understanding
it is that it appends the poll info. to
the URL and then redirects you back to
the original page. I have put the poll
on another page in my site and it
works, so the problem I think is that
my index page doesn't show in the
address bar and it just appends the
info. to (http://www.mysite.com/?...)
instead of
(http://www.mysite.com/index.asp?...)
Does this make sense and is there a fix
for this that you know of? Any help
would be appreciated. Thank you.

(If this comment was disrespectful, please report it.)

 
11/22/2003 4:24:32 PM

Hi, Great app, howvwe I cant get it to produce the desired poll. I get an error on line 106 of the admin-update.asp which is
set rs = cn.Execute(SQL)
I am running it on a W2000 server with Jet v8. Any ideas? TIA GZ
(If this comment was disrespectful, please report it.)

 
8/19/2004 7:59:06 AM

But it seems, your E.Z.Poll v.2does not work in my hosting
http://www.brinkster.com)
(If this comment was disrespectful, please report it.)

 
8/19/2004 8:00:55 AM

But it seems, your E.Z.Poll v.2 does not work in my hosting
http://www.brinkster.com)
(If this comment was disrespectful, please report it.)

 
9/8/2004 3:14:20 PMrentac_buyer

This is brilliant, just dropped into folder and gave w/r privs and works great. Thanks for avice about disabling ip blocking, this has caused probs with my network setup but hopefully this will sort...
(If this comment was disrespectful, please report it.)

 
5/12/2005 6:10:45 AMm_al

that is very nice, if you agree i will use this tool seem v.nice
(If this comment was disrespectful, please report it.)

 
9/19/2005 2:59:51 PMDavid

Hi, Great app, however I cant get it to produce the desired poll. I get an error on line 106 of the admin-update.asp which is set rs = cn.Execute(SQL)
(If this comment was disrespectful, please report it.)

 
1/24/2006 12:57:36 PMJames

Great script!!
Is there a way to make it not show the number of voters?

Thx
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Games | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2010 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.