Results 1 to 10 of 10

Thread: PHP Poll/Vote script

  1. #1
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    81
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default PHP Poll/Vote script

    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.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Last edited by djr33; 01-08-2007 at 02:39 AM.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2006
    Location
    In my home
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I didnt mean to post twice and lets just be friends please?

  4. #4
    Join Date
    Dec 2006
    Location
    In my home
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    And fine ill tell you how but I dont think its php ok

    HTML Code:
    <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.
    HTML Code:
    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>
    Last edited by yoshi555; 01-08-2007 at 01:15 AM.

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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...
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Dec 2006
    Location
    In my home
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I use it

  7. #7
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    81
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    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

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #9
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #10
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Quote Originally Posted by yoshi555
    and to put in there emaail do <input type="email" name="email">
    Code:
    <input type="email">
    ...is no different than
    Code:
    <input type="text">
    and if anything, it is invalid.
    - Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •