Support » Fixing WordPress » Modifying a cookie script

  • 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

  • The topic ‘Modifying a cookie script’ is closed to new replies.