Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Poll Mod: Allowing multiple votes?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Web_Geek
Starting Member

7 Posts

Posted - 15 January 2003 :  18:09:24  Show Profile
Hello,

I want to be able to allow users to select more than one poll choice. IE:

Which widget(s) do you like best?

widget 1
widget 2
widget 3

I would like to allow users to select widget1, widget2, widget3 or any combination of these, if they are so inclined, they could even select all three.

I attempted to edit the form to have checkboxes instead of radio buttons, but that didnt work. It didnt count the votes when I hit submit, it simply showed me the poll results, which were 0 votes cast.

How could I go about doing this?

Web_Geek
Starting Member

7 Posts

Posted - 15 January 2003 :  18:18:44  Show Profile
when you have checkboxes with the same name, and there is multiple selections, doesnt it turn it into an array?
Go to Top of Page

Web_Geek
Starting Member

7 Posts

Posted - 15 January 2003 :  18:49:32  Show Profile
ahh!

I changed the form type from radio to check box, and added this code:

arrVotes=split(request.form("R1"),",")
for each intVote in arrVotes

THE CODE TO UPDATE DB HERE

Next

Edited by - Web_Geek on 15 January 2003 19:23:16
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07