Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default [PHP] "Trick" Page

    cause I was bored and felt like making my friend **** one day...

    PHP Code:
    <html>
    <body>
    <?php
    $msg 
    'pgmr.co.uk ftw';
    if(empty(
    $_POST['submit']) === false) {
     while(
    == 1) {
      echo 
    '
      <script language="javascript">
      alert(\''
    .$msg.'\');
      </script>
      '
    ;
     }
    } else {
     echo 
    '
     <form method="post" action="">
     <input type="submit" value="Bored? Click Here?" name="submit" />
     </form>
     '
    ;
    }
    ?>
    </body>
    </html>
    only works with js enabled
    Vouches
    [x][x]

  2. #2
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Why not just do it all in javascript
    Hi, names James. I am a web developer.

  3. #3
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    i don't know javascript.
    Vouches
    [x][x]

  4. #4
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Code:
    <script type="text/javascript">
    function Bordem()
    {
        while( 1 == 1 )
        {
            alert( 'Boo hoo, ****.' );
        }
    }
    </script>
    
    <button onClick="Bordem();">Bored? Click here</button>
    Hi, names James. I am a web developer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •