Questions tagged [voting-system]
179 questions
0
votes
0 answers
How can i get the different value of one group radio buttons while the form is loop and with only one submit button?
Please see the screenshot Project for School: Voting System
Can you please hep me on how can i get the value of radion buttons 'nominee' for every loop of the form. In each form the voter should vote only one of the candidate for example is for…
0
votes
2 answers
Get the ip address of client in php
I am using the following function for getting the ip address of client.
function get_client_ip() {
$ipaddress = '';
if (isset($_SERVER['HTTP_CLIENT_IP']))
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else…

sheldon cooper
- 455
- 2
- 8
- 22
0
votes
1 answer
combining votes from microservices
Does it make sense and what would be a reasonable way to implement the following:
This could happen for either single instances or a time series of data. There could be several micro-services consuming data (from kafka for example) and performing…

r3nw0rp
- 61
- 1
- 6
0
votes
1 answer
Social voting on Google App Engine
I have an app where users can upvote or downvote a blog post. To implement the voting functionality, I created the below model ...
class Upvote(ndb.Model):
user_id = ndb.IntegerProperty(required=True)
blog_id =…

JK140
- 775
- 2
- 10
- 19
0
votes
1 answer
How to edit user input on java?
I am currently making a voting system where the voter enters in their details such as name, age etc.
I also have another class for admin, the admin can view the list of results but i also want the admin to edit the voter details and to save the…

JustABeginner
- 3
- 2
0
votes
1 answer
Voting Program CPP help (wrong output)
First of all thanks for reading. The program I am trying to write has to do following:
In the elections of the mayor of the Great Guslaru took off M candidates labeled by numbers from 1 to M. Each of the N voters gave an important vote for one of…

Stephan
- 5
- 1
- 2
0
votes
0 answers
Borda count in Python for list of numbers
I have been trying to build the Borda count in Python for a few days. I have done quite a lot of work on internet searching as well. All of the examples I have found so far is the Borda count for text (e.g input = ['A>B>C>D=E']), which is different…

June
- 1
- 2
0
votes
1 answer
How to implement voting system closing date feature?
I am implementing a node.js not real-time poll creating and voting system, where the admin can create a poll and set a closing date and then when this date is arrived the system closes the poll, send subscribed users an email and the users can't…

Edson Bueno
- 89
- 1
- 5
0
votes
1 answer
Why is it only displaying one result
This program is supposed to accept in valid candidates for voting, add the names typed in a text box to a list box. In the list box the user may double click on the candidate they choose. After the tally button is clicked a list box displaying the…

Justin de Gois
- 35
- 1
- 5
0
votes
3 answers
How to restrict votes per day by IP in Php+Mysql voting?
Hello I have this voting script attached it counts votes by IP address. Please how can I create a kind of time session on the IP addresses. "say 5 votes a day per IP. Voter has to wait another 24 hours before voting again. I know there are kind of…

Vin Nwaikwu
- 67
- 1
- 13
0
votes
1 answer
jQuery Voting (rating) Slider - Works but has bugs
My problem is I can't get this jQuery slider to start from .1 to 10 in .1 increments and end (stop) at 10. Would like to pull this off without jQuery UI or jQuery tools.
I plan to have the hidden input value updated using the slider position then a…

Brandon
- 86
- 10
0
votes
1 answer
Plurality voting with priorities for tie-breaking algorithm implementation
I am trying to implement a plurality voting algorithm where priorities are used to break ties. What I mean by priorities is the following. For example, we have three classes - A, B and C. But the priority goes A, C and B, starting with the highest -…

roskoN
- 333
- 4
- 12
0
votes
1 answer
Implementing Like Button In Cells - Logic/Data Passing Issue Swift
When I tap a button, I want the value to update for only that cell.
I'm a bit of a noob so please be easy on me!
I currently have a delegate set in the custom cell that I'm accessing in the tableViewController as well as Bool values that determine…

Lukesivi
- 2,206
- 4
- 25
- 43
0
votes
1 answer
voting system not working when deployed to heroku
I have a list of 'destinations'. There is a LIKE button next to each destination as well as a like count. I was able to get this 'liking system' working locally. however, once deployed to heroku, the 'like count' is displayed as 'undefined' and then…

coderk
- 71
- 12