Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: php poll

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Louisville, KY
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php poll

    I'm trying to configure a poll that I downloaded, but I keep getting errors. This is the only part of the script that I've modified. Assuming all other parts are present and working, is there anything wrong with the syntax of the following?

    PHP Code:
          <?php
           
    if(isset ($page))
           {
            if (
    $page == "poll")
             {
             include(
    "results.php");
             }
           }
            else
            {
             print(
    "Vote in the poll!");
            } 
           }
          
    ?>

  • #2
    Regular Coder
    Join Date
    May 2003
    Location
    34° 54' N 82° 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What poll system are you using?
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #3
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    also, what error messages (if any) are you getting, the $page var, is that a variable set in the script, or another type (eg: passed in the URL)

    if you could give us some more information we would be able to help more, as the code there has no errors.


  •  

    Posting Permissions

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