is it possible to do this?

Discussion in 'HTML & JavaScript' started by leedaman, Jul 19, 2010.

  1. leedaman

    leedaman Junior Member

    Joined:
    Sep 7, 2009
    Messages:
    132
    Likes Received:
    27
     
  2. leedaman

    leedaman Junior Member

    Joined:
    Sep 7, 2009
    Messages:
    132
    Likes Received:
    27
    no help?
     
  3. catchers

    catchers Newbie

    Joined:
    Aug 12, 2010
    Messages:
    32
    Likes Received:
    6
    try this:

    <?php
    $choice = rand(0,1);
    if($choice==0){
    header("Location: hxxp://yourhostdotcom/landingpage.html");
    } else {
    header("Location: hxxp://yourhostdotcom/fbpage.html");
    }
    ?>