Support » Plugin: Password Content ShortCode » if condition in sidebar

  • Hello.

    I have this code [][/] on page and work perfectly! so i want now if i can in sidebar check if the form is properly completed on the page and then will echo some word in sidebar. for example something like this in sidebar:

    if (isset($_POST[‘csp_submit’])) {
    if ($_POST[‘csp_input’] == $password AND $password != ”) {
    echo ‘password is corect and echo some words’;
    }
    else
    {
    echo ‘password is wrong’;
    }
    }
    else
    {
    echo ‘you must enter pasword on page’;
    }

    https://wordpress.org/plugins/password-content-shortcode/

  • The topic ‘if condition in sidebar’ is closed to new replies.