View Full Version : PHP Poll/Vote script

01-08-2007, 12:58 AM
For a sportsteam's website i'm looking for a free script in which the user can vote for the "player of the week" (up to 14 players) and has to give his/her e-mail address to complete the vote so we can draw a winner out of all votes.

01-08-2007, 01:41 AM
Quit posting twice in a row, use correct markup codes, and quit having people email you for answers.

The point of the forum is to discuss the questions in a thread so that everyone can learn and benefit from each other.

EDIT: This was directed at yoshi, and he seems to have deleted the posts in question.

01-08-2007, 02:03 AM
I didnt mean to post twice and lets just be friends please?

01-08-2007, 02:09 AM
And fine ill tell you how but I dont think its php ok

<form method="post" action="right here type the
php thing you want it to send it to, mailto:you email ,or
you cgi email">

<input type="checkbox" value="value"
name="name of poll no.1no.1>

then just keep doing that with diffrent values and names.

and to put in there emaail do <input type="email" name="email">
then <input type="submit" value="submit"><input type="reset" value="clear form"></form>

01-08-2007, 03:36 AM
You've posted twice in several threads. That's why I said it.

The above code is a bit strange. Might work, but, for example, i have never heard of the <input type="email"> code. But... maybe...

01-08-2007, 03:37 AM
I use it

01-08-2007, 04:41 PM
i'm really looking for PHP so the users can see immediatly the "score" of the poll and i can put in some code so they don't vote twice

01-08-2007, 06:38 PM
Well, seems like a database thing.

It's really not that complex if you know some PHP.

Here's a starter tutorial-- http://php-mysql-tutorial.com

See if that helps.

Generally, polls check the IP to be sure that people don't vote twice, but that can be faked by just using a new machine (or, if possible, a new IP).
You could do a login, but that's more complex.

Just have a form, have the php take the sent value of the radio buttons or select, etc. then add to a database as a 'vote' then, when displaying, do an average of all votes, and that's it.

01-08-2007, 07:09 PM
Try this script


Hope this helps.

01-08-2007, 07:12 PM
and to put in there emaail do <input type="email" name="email">

<input type="email">
...is no different than

<input type="text">
and if anything, it is invalid.