Modifying a cookie script (1 post)

  1. thepope
    Posted 11 years ago #

    I'd like to display 2 or more polls on one page, the problem is of course the cookie disallows the other polls. Here is the cookie line:

    // If User Click Vote
    if(isset($_POST['vote'])) { $voted = true; }
    // Check User Cookie
    if(isset($_COOKIE["voted_".$polls_questions[0]['id']])) { $voted = true; }

    I am calling the polls by ID:
    <?php get_polls('3'); ?>
    <?php get_polls('2'); ?>
    <?php get_polls('1'); ?>

    Is this a quick change? Thanks so much

Topic Closed

This topic has been closed to new replies.

About this Topic