Results 1 to 9 of 9
  1. #1
    Doupleganger's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    A cold room in the attic
    Posts
    948
    Reputation
    21
    Thanks
    11
    My Mood
    Amazed

    1337 speak in php

    [PHP]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    </head>
    <body>
    <form name="frmLeet" action="https://localhost/leetspeek/index.php" method="POST">
    <p>Enter your message</p>
    <textarea name="sentence" rows="4" cols="60"></textarea>
    </ br>
    <input type="submit" value="SUBMIT" name="Convert message" />


    <?php
    // put your code here
    // stri[ thee data
    IF ($_POST == null)
    {return;}


    $sentence = $_POST["sentence"];
    $leet = $sentence;
    $leet = str_ireplace("e","3",$leet ) ;

    //output
    echo "$sentence<br />";
    echo "is converted to <br />";
    echo "$leet<br />";


    ?>

    </form>
    </body>
    </html>[/PHP]









    ONLY DOSE

    $leet = str_ireplace("e","3",$leet ) ;

    REPLACE E WITH 3
    all i did....

    YOU CAN EDIT AND ADD MORE!

  2. #2
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    What does this do?
    I'm back.

  3. #3
    treeham's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    heh. Turn around.
    Posts
    200
    Reputation
    10
    Thanks
    41
    My Mood
    Cynical
    Quote Originally Posted by Doupleganger View Post
    DOSE
    Does*

    and I think it converts the word "leet" to "l33t"
    Although a converter from noob to proper english would be more useful.
    In Choob Language:
    also for all your info.. i didnt copy and paste shit.. coz i dont think anyone has realeased any source code for the New update of CA.. so sdfu..
    In English:
    I didn't copy and paste because no one has released what I need copy and paste
    Oh Choobs...

  4. #4
    Spookerzz's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    4,647
    Reputation
    26
    Thanks
    572
    I agree With Treeham
    I'm back.

  5. #5
    XxTylerxX's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    MPGH
    Posts
    1,269
    Reputation
    14
    Thanks
    522
    that seems rly easy and simple
    Respect List:
    Nooby Banana
    Bombsaway
    Luke

  6. #6
    yearupie's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Posts
    54
    Reputation
    11
    Thanks
    2
    1) The action in your form can just set on #.
    2) A form has no name needed -> delete!
    3) Wrong way to check whether your form has been sent.
    4) Variables should not be in quotes!
    5) $leet = $sentence; is not necessary!

    [php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    </head>
    <body>
    <form action="#" method="post">
    <p>Enter your message</p>
    <textarea name="sentence" rows="4" cols="60"></textarea>
    <br/>
    <input type="submit" value="SUBMIT" name="Convert message" />

    <?php
    // put your code here
    // stri[ thee data
    if($_SERVER['REQUEST_METHOD'] == 'POST')
    {
    if(isset($_POST['sentence']))
    {
    $sentence = $_POST["sentence"];
    $leet = str_ireplace("e","3",$sentence ) ;

    //output
    echo $sentence."<br/>";
    echo "is converted to <br/>";
    echo $leet."<br/>";
    }
    }
    ?>
    </form>
    </body>
    </html>[/php]

  7. #7
    Ugleh's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    House, Where you live?
    Posts
    276
    Reputation
    17
    Thanks
    221
    My Mood
    Blah
    yearupi, id do something like

    if($_POST['Convert message'] == "SUBMIT")
    {

  8. #8
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    My Mood
    Devilish
    It replaces 'e' with '3', there are more changes you can make to make it more "l33t", change all the l's to 1's and o's to 0's, etc..





    THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE


    "First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311

    HAVING VIRTUAL DETOX

  9. #9
    yearupie's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Posts
    54
    Reputation
    11
    Thanks
    2
    Quote Originally Posted by Ugleh View Post
    yearupi, id do something like

    if($_POST['Convert message'] == "SUBMIT")
    {
    You only check if $_POST['Convert message'] have a value of SUBMIT.
    It may be that $_POST['sentence'] not exist.

Similar Threads

  1. 1337?????
    By JTLOBAMHSK in forum General
    Replies: 14
    Last Post: 06-04-2011, 03:00 AM
  2. Thread entirely 1337 speak only
    By EleMentX in forum General
    Replies: 27
    Last Post: 08-14-2006, 05:08 PM
  3. "leet speak"
    By EleMentX in forum General
    Replies: 1
    Last Post: 07-26-2006, 07:00 PM
  4. Wow Flawless is so 1337 huh? Rofl.
    By 123321123321 in forum General
    Replies: 32
    Last Post: 05-16-2006, 01:18 AM
  5. leet speak generator
    By Duagang in forum General
    Replies: 2
    Last Post: 05-06-2006, 09:20 PM