• Resolved evejuan

    (@evejuan)


    Hi,

    In our webpage we let guest fill polls, but in the previously page we have a form with name and email. When submit the form, appears the poll, but if I put the url directly appears too.

    How can we avoid the direct url?

    Thank you in advance,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Sorry that is not possible since the polls is embedded in your sidebar/post in your theme. So when there is a sidebar or the post, the poll will appear.

    Thread Starter evejuan

    (@evejuan)

    Thank you Lester for your fast reply.

    Ok, but can we modify any php file from the plugin to check the POST variables in the previous form or the previous page to activate the poll?

    Example:

    if ($_POST["email"]) {
        activatepoll();
    } else {
        echo "You must fill the previous form";
    }

    or

    if ($_SERVER['HTTP_REFERER']=="http://www.mydomain.com/form.php") {
        activatepoll();
    } else {
        echo "You must fill the previous form";
    }

    Best regards 🙂

    Plugin Author Lester Chan

    (@gamerz)

    I don’t think that will work because it uses AJAX to vote.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Avoid direct url’ is closed to new replies.