Voting System - Identifying Voter And Integrity Of The Vote
I am trying to setup a voting system for our intranet (staff awards - free text fields). I have the database adding the votes no problem. What I would like to do however is the following:
1. It's our intranet, there is no need for each person to login so it just uses "user/user". However I need to capture the person's login on the vote record so I can identify who voted.
2. restrict the users to one vote each. I have done some research and it looks like I have to create a cookie.
View Complete Forum Thread with Replies
Related Forum Messages:
Voting System(i Am Using Two Tables One For Result And One For Voting
I want to create voting system on my website. how can i implement it. the logic is if i create some voting system in mysql table and save result in mysql. how can i show that result in graph shape in such a way like e.g voting are on five things, animal 5 bird 30 fish 30 cars 15 and homes 25 votes total vote cast 105 how can i show this in graph. I want to show like: for animal it shows green bar bird shows red bar etc. hope you will understand the question. any query please feel free to email me. any idea how can i get this my object.
View Replies !
Voting System
I want to build a voting system that also would create a ranking system for the songs that I have on my website. Anyone have any suggestions on where I should start and what I need.
View Replies !
Voting / Polling System
I am developing a voting / polling system. Eg. Who is your favourite sport star: a. mike b. sara c. frank and I want to make sure that one person can not vote more than one time. I thought about using the session ID as a unique identifier,
View Replies !
Flagging/voting System
I have a website where users submit anonymous messages, which are automatically posted publically on a rolling list. I am trying to implement a community flagging/voting system so users can eliminate spam messages themselves. I would like a flag icon to pop up next to each submission, and for entries to be deleted from the database (or at least not displayed) after 3 user flags. I have looked around online but have been unable to find a good example.
View Replies !
Rating System Doesnt Enter The Vote In The Database
Im trying to make my rating system work, as of now it doesnt enter the vote in the database, for example if someone submit a new peice of art and I go to rate it and i click 4 stars, then I got in the database and it will have entered the id of the rating we just did, and the ID of the art we just rated but in the rating and number of votes put 0 I dont know why. Here is my code:
View Replies !
How To Make A Voting System With Php/mysql.
how to make a voting system with php/mysql. I've got a website that is still in beta stage tested in local, the aim is to list books with a review (made by me) and a vote (made by visitors). So I supposed that it should work like this: - a visitor looks at the review page and under it he can see the rating of the book given by previous visitors - he decides to vote too and so clicks on a gif image representing the vote that he would like to express and gets redirected to another page saying "thanks for voting" or "sorry, already voted" The table "books" in the database already exists with some books,reviews,etc. How can I work it out?
View Replies !
Data Integrity
I looked for this sort of subject in the PHP forum but i only found related subjects in the ASP forum. I have 2 tables in my DB. The two are related. They have a 1 to Many Relationship. When i am adding new data to those tables i first do a INSERT in the first table then i do the INSERT in the second table. What if something goes wrong between the first and second inserts? I don't want my data to be written to the first table if my the other data isn't written on the second table? What are your guys opinion on this? How do i use like rollback, commit in PHP?
View Replies !
Is There A Way To Verify Integrity Of Php/javascript Code
Our app runs on end-users machines (apache2.x + php5). At this moment it is quite easy for someone (who has access to the console) to insert a couple lines of php code to steal sensitive info. Is there a way to check the integrity of the php and javascript code by using digital signatures/simple hash/etc. ? What do you do to verify that your code has not been changed by someone else and everything is leaked to a rogue site?
View Replies !
Maintaining Data Integrity With Multiple Users
I'm working on a multi-user system that at times may result in 2 users accessing the same screen. These screens allow the users to both view and update data. The problem comes when you have user A and user B viewing the same screen and user A submits his page that writes to the database. User B is now viewing a screen with invalid data. How do I prevent this scenario from happening with PHP? I thought about using a lock flag in a database table that gets set when a page loads but realized there's a problem if the page is closed and the the lock flag never gets reset. What should I be doing to handle a situation like this?
View Replies !
One Vote Per Person, How?
There are articles in this database which I want the users to be able to rate, the trouble is I only want them to be able to rate each guide once. Everyone must login to vote, but what is the best way to do it with several hundred articles to rate on? Making sure they login before voting and the rating code itself works fine, I just need help on how to stop the same person voting twice.
View Replies !
Vote Adding
Someone selects either 1 star, 2 stars, 3 stars, 4 stars or 5 stars to vote. The vote is posted away. Problem now is that I cannot add the vote to the sum variable I have in the database. This code isn't working very well : if (($_POST['newvote']) == 1) { $vote1 = $vote1 + 1; } Etc etc till 5. What should I do instead? It shouldn't be that much of a complicated problem.
View Replies !
Vote Script
where I could find a voting script like this one. I have searched and am still searching but have never come across something like this.
View Replies !
Best Way Of Only Allowing People To Vote Once?
I want to build a user rating system but what is the best way of only allowing people to vote once? Is it by marking their IP or by saving a cookie or something else? Needs to be quick and simple and doesn't have to be mega secure and the option of a login system is not do-able.
View Replies !
Vote Only Updates One Field
I have a select box that should update 2 rating fields in a mysql table. The one that knows how many votes have been processed updates, but the other one doesn't.
View Replies !
Vote And Comment Script
Do you know a good (and free) script for add in each article page of the site? The script should have a vote system for the article and allow comments. My site use SSI and can include a PHP script at the bottom of the page. A admin area too add/edit polls and comments is desirable. Im searching but I find only vote or only comments scripts.
View Replies !
Voting
i'm making a website for msuic and i want people to vote for the songs that they link mos tand in the front page is going to show the song smos tpeople vote for.. wha ti want to know is how would you make this voting.. clear the vote ever week? or just keeps the votes as regular number .. how do they do it at other website like MTV , BET and all those website that you can go and vote for music.
View Replies !
Voting Script Using Php
I'm trying to make a voting script using php. Users can only vote once, so I would like to store the IP in a MySQL database. First in the script self i would like to check if the visitors IP is already in the databse. If it is then i will not show the vote form on the page. simple but effective. Now the problem, PHP Code:
View Replies !
Voting For A Emulator
This is my first script, it's about voting for a emulator from a number between 1 and 10. It will insert it once per day per emulator, if someone (with the same ip) tries to vote again he gets a messages you have already voted. But it always gives the message your vote has been recorded but nothing is inserted in the database. (that's good!) What is wrong??? PHP Code:
View Replies !
PHP Voting Page
I am trying to create a php page which should retrieve images from a images folder and the image has to be voted with the results showing immediately when the vote for this image button is clicked. There are over 50 images which are called from the folder and all the images are on the same page with a voting button in the adjacent column. The result has to be a number showing how many times the logo has been voted. Code:
View Replies !
Php Voting Scirpt
Im working on a php and mysql voting script, I would like to be able to let people vote on items only one time for each single item, but then still be able to vote on the other items once if they want to?. What would be the best way to make this possible?.
View Replies !
Voting Polls
On one of my web pages i want to display a set of images and get my audience to vote on their favourite by clicking a button below the image or inserting the image title into a little box and then clicking submit, whichever is the easiest to implement. This in turn will clock up a list of results or email me each time so that i can use the info or emails to select a winner at the end of the period of the competition.
View Replies !
Voting In Outlook 2003
I am tring to get my web page on the click of a button to generate a mail from a person to a manager of a department, with voting buttons, so that when the manager approves the request the relevant information gets passed to HR. Is this possible in PHP? i understand the use of mail() and so a message could be drawn up, however th inclusion of votin buttons is the tricky bit!
View Replies !
Voting Or Poll Scripts
I am new to Php, but working my way out slowly. I saw some polling or voting scripts on the net and all of them use MySQL database with it. I was wondering if a file can be used (to save use of a database, I have only 10-databases from godaddy and I cannot use one for each poll). It seems that this can be done (using file instead of a DB), but I don't want to re-invent the wheel. So if someone has a suggestion, please help me out.
View Replies !
Storing Voting Data
I am introducing a voting system and I can't figure out (well anyway) how to store the results of each proposal. Registered users can vote on proposals, this vote needs to be recorded somehow. I'm guessing a list of users and their vote attached to the moderation somehow in the MySQL voting table, or alternatively attach to each user what they have voted on. Either way I'm not sure how to add a list of users to a particular ID of an SQL row, the only way I can see doing that is having an array of users in a row, but I don't think MySQL supports arrays like that?
View Replies !
Voting Mechanism (think Digg) Without Registration
Is it possible to implement an accurate voting mechanism (think digg.com) that does not require users to sign in before voting? I think for many people registering is pain and thus they rarely give their votes online. Just look at digg and compare the number of votes to the number of people visiting their website. IOW what if somebody needs votes but cannot afford to bother users with registration process? I understand that just leaving it open for anybody is not really an option since any jerk can ruin other users' votes just by clicking like crazy with his mouse, but on the other hand somebody can register with 100 different names and cause identical damage. - Limiting votes to an IP is also not perfect, since people are behind NATs quite often (or maybe your opinion is different?). - I was thinking about email-based authentication (when you want to vote, system sends email which you have to confirm), where you would need to have many email accounts to manipulate votes, but isnt' it even bigger pain than registering? - Maybe very long captchas? (that would require jerks to type a lot, but still...) - Some weird JavaScript setup that requires you to leave the site open for a while for the vote to become active? (nah) So (and I don't need it to be perfect every time), do you have any idea on how to make it complicated enough that most of the jerks stay off and it's simpler/better than registering for the good users?
View Replies !
Identifying Browser
Is there a way to identify the brwser a visitor to my site is using? I would like to include site style based on the visitor's browser. If their us IE show layout one way, if their using Firefox show it another way...etc...etc.
View Replies !
Identifying People
on my website i'm finding people are coming back and signing up again and again... how can i log them so i know who has logged in before. was thinking IP but does this not change per session online with dial up?
View Replies !
Identifying A Value Range
i have a form that submits to a php file, the form basically has a hidden field called number: <input type="hidden" name="number" value="12"> i know how to read the value of that, its simply putting <?php echo $_POST['number']?> but what i want to do is check if the number is between 1 and 25 and if it is then echo A else if it is between 25-75 then echo B else if it is anything above 75 then echo C .
View Replies !
Identifying SSL Clients
I have a site that uses PHP sessions through SSL, my employer does not wish the site to require cookies so I have switched on the use_trans_sid option for users who have cookies disabled. The problem I have is stopping session hijacking. If I am on a page "https://secure.mysite.com/page.php?PHPSESSID=XXXXX" And I email the url to someone else they can get onto the site without being challenged for a logon. I am trying to find a way to check that the connection is still coming from the same SSL connection, e.g. by checking the clients public key, but I can't find a way to get any information about the SSL connection from PHP.
View Replies !
Identifying An Image
Ive got a tracking system which tracks how many times a user clicks on an advert on my site. At the moment all the listings are set as one so when a user clicks on that advert it gets one click. However, one of the adverts is now going to contain two images advertising two separate companies. Ive set it up so the images and urls are different and they go to their own websites and in my tracking table i have just added an extra column called image and the number 1 goes in if image 1 is clicked on or 2 if image 2 is clicked on. However, to display this is the bit im not sure about. At the moment its displayed in a table like this: Advert Name Category Number of clicks Advert 1 Shopping 257 However, if advert 1 has two images, meaning two separate companies, how can I show this in the above table?
View Replies !
Identifying The Clicked Record
i already know how to load the my list of suppliers using mysql/php/apache, but what i would like to do now is put a link for each and every supplier and when someone clicks it, they will automatically go to that supplier's list of products. i want something like this: SUPPLIERS TABLE supplierID, Name, Address, AA Alfin21 1506 w. 66th street <>EDIT<>
View Replies !
Identifying Search Engines
my website is pretty much database driven and i've typically parsed the data in PHP and just output flat HTML. however, i'm trying to save some badwidth by spitting out just the critical information, and have javascript parse out the data. however, i'm kinda worried how search engines would react to this. (especially google) would search engines ignore the keywords if they are inside javascript tags? how do i detect search engines? maybe i can just setup a special script that output's "search-engine-friendly" output.
View Replies !
Identifying Black Images
I would like to be able to identify completely black images in order that I can exclude them. I am thinking I could use gdlib but I cannot find a suitable function. If I can find the rgb of the image then I can exclude it.
View Replies !
Identifying Individual Users
I know that you can identify users using an ip address. But what if you have several users with different computers in one room sharing the same ip address. Is there anyway to differentiate each individual. Is there a unique signature from the computers that can be used?
View Replies !
Identifying Parts Of A String
$url = /blah/elephant/spaghetti/page.php This gives you the whole path. But how can you identify each directory in the url individually? ie. I want $one to equal 'blah', $two to equal 'elephant' etc.
View Replies !
Identifying Off-site Links
Is there an easy way to identify off-site links using php? For example, on a forum site like phpbuilder.com, I'm looking for code to flag posts that contain: Code:
View Replies !
Identifying A Page Via Hyperlink
I have a page (product_wide.php) that displays sale items. In that page, I "include" a 2nd page that contains hyperlinks to general item categories. The hyperlinks in filternavbar point to product_wide, and display items from the category selected. I need a way, using the same hyperlinks I am using now in filternavbar, to tell, from product_wide, that it was from filternavbar that the link was clicked (as opposed to some other page in the site that takes you to product_wide. I can't change the configuration of the filternavbar url because of duplicate content issues with google.
View Replies !
Identifying Dynamic Form Fields
User goes to page which is a form that asks for some basic info regarding returning products for credit/exchange, and also asks for how many products are going to be returned. Upon submitting, a return authorization form is presented to them with the specified number of product fields. I now want to take the input from this form and email it to myself, as well as, display a confirmation page to the user. The problem I have is a can't say, for instance, echo "$field_name"; because field_name will get created dynamically after the user specifies how many products to return. For example, say the user says 5 products, this will generate a form with field names like: return_code0 inv_num0 qty0 product0 cre_exch0 stockout0 return_code1 inv_num1 qty1 product1 cre_exch1 stockout1 return_code2 inv_num2 qty2 product2 cre_exch2 stockout2 and so on.... These get created with a for() loop. Once this form is submitted, how can I address the field names? Code:
View Replies !
Identifying Non-Supported Characters In A TTF File With GD?
I've managed to get GD working (mostly anyway) on my site - and am utilising the "imagettftext" function. I am using this function to display individual characters on my website - with a nominated Font. However, sometimes the characters in my StringText are not supported by the particular font that I am using ... Directly from http://www.php.net/manual/en/function.imagettftext.php imagettftext - "If a character is used in the string which is not supported by the font, a hollow rectangle will replace the character." Can anyone suggest some code that would: 1) compare/look at the StringText supplied within the "imagettftext" function (in my case the StringText will comprise of a single character only) 2) where the supplied StringText (ie character) is NOT supported by the font, then I need for that character to be reported as not supported. ie. either; return a flag or skip the non-supported character entirely - rather than displaying the standard "hollow rectangle".
View Replies !
Identifying Opening Link For Database Query?
I've got a tricky problem i need to solve, i'm building a banner exchange type site in which there are already about 100 banners so i've had to code things around what already exists to a certain extent. Now each of the banners that go out on other sites have a link on the banner which pops open a window with details of the banner. this would be fine if all my banners were gifs and jpgs but there are also swf and dcr banners so i have no real control over the actual link on the banner. up until now each banner had a html page made for it so when you clicked on a banner it would open a page banner_1.html which had the details of that banner. for obvious reasons i'm going to replace all these redundant pages and put a htaccess redirect at their url to all redirect to a common page popup.php so all details will be dealt with in one file. ok this is fine but my problem is in this page popup.php i need to identify the link that just opened the window so that i can then get the info from the database to put on the page.. remember i can't use the url like so... bannerpage.php?thisbanner=1 but all existing links have unique addresses, is there a way to do this, i'm pretty sure there must be but i can't get my head around it?
View Replies !
Identifying Auto Increment Values For Each Of The Fields
I have set up a database i mysql, identifying auto increment values for each of the fields (eg AdminID). I was wondering how i can set up a form which will, when i go to add a new member, have the autoincrement value already present in the field and i can continue to input the rest of my data as usual.
View Replies !
Identifying User's Pick From Selection List
I have an application that uses PHP to access a MySQL table and extract rows which match the user's search entry. Data from the matching rows are loaded into an HTML selection list, and the user can scan the list and highlight a selected item. My question: In PHP, what is the syntax for identifying which row is highlighted? My goal is to pass the unique row ID of the selected item to a subsequent form where all the fields will be displayed for the user to edit. I already have the code that loads the selection list and the code that displays the fields. I just need to know how to determine the highlighted item. I have two PHP books, and both discuss loading the selection list, but there is no mention of what to do next.
View Replies !
|