1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Locking Link with PHP

Discussion in 'BlackHat Lounge' started by nisdee, Jul 24, 2015.

  1. nisdee

    nisdee Regular Member

    Joined:
    Nov 16, 2014
    Messages:
    354
    Likes Received:
    122
    Location:
    Rainbow Land
    So I made a referral site and I'm not very good with Php...

    So I want a button which is a link to other site so be locked until member gets 10 points or so

    This is php condition ( I don't know what to insert here)

    <? if($hits > 9){
    ?>

    And this is the button

    <button type="button" class="button" onclick="location.href='#';">Click me</button>
     
  2. Masterptc

    Masterptc Regular Member

    Joined:
    Aug 9, 2011
    Messages:
    419
    Likes Received:
    604
    Home Page:
    Code:
    <?php if($hits > 9) : ?>
        <button type="button" class="button" onclick="location.href='#';">Click me</button>
    <?php endif; ?>
    
     
    • Thanks Thanks x 1
  3. nisdee

    nisdee Regular Member

    Joined:
    Nov 16, 2014
    Messages:
    354
    Likes Received:
    122
    Location:
    Rainbow Land
    Thanks, gonna try it out