Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Nov 2006
    Location
    Shropshire
    Posts
    1,590
    Tokens
    357
    Habbo
    MailOffice

    Latest Awards:

    Default +Rep Coding Help

    Hi
    I want a code that when i type in a word

    Example :
    Credits = 9981

    So when i type in CREDITS it gives me a Voucher Code / a code
    It dosent have to say credits thats just an example !

    +rep for all helpers !


    .xo

  2. #2
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    what so a random string generator?
    EDTALKING


  3. #3
    Join Date
    Feb 2005
    Posts
    2,503
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by :Edzy View Post
    what so a random string generator?
    Think so?

    Be something like this I think

    PHP Code:
    <?php
    echo rand() . "\n";

    ?>
    Edit: Sorry, thats not really going to help. I should have read all the first post, sorry.
    Last edited by Matt.; 28-05-2007 at 12:53 PM.

  4. #4
    Join Date
    Nov 2006
    Location
    Shropshire
    Posts
    1,590
    Tokens
    357
    Habbo
    MailOffice

    Latest Awards:

    Default `

    Yeah a random text thingy !
    So when i type a code it says a reaction

    Like with a bot , When you say coke , They say coke yeas rite away or sumtin !


    .xo

  5. #5
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    what so you say

    CREDITS 100
    -845845

    next lot of credits

    CREDITS 100
    -845845

    that might be a problem
    EDTALKING


  6. #6
    Join Date
    Nov 2006
    Location
    Shropshire
    Posts
    1,590
    Tokens
    357
    Habbo
    MailOffice

    Latest Awards:

    Default

    Anybody know a Random Text Genorator ??

    So it reacts with the Word

    LIKE A BOT !


    .xo

  7. #7
    Join Date
    Aug 2005
    Location
    East London
    Posts
    2,578
    Tokens
    0

    Latest Awards:

    Default

    i dont get you

  8. #8
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    PHP Code:
    <?php
    if($_GET["action"] == "send") {
    $text $_POST["text"];
    if(
    $text == "credits") { // The Word that it responds too
    echo rand() . "\n"// What it says if the word you selected is the input
    } else {

    echo 
    "You didn't not type credits correctly"// The Output when the word you specify isn't the input
    }
    }
    ?>
    <form name="credits" method="post" action="?action=send">
    <input type="text" name="text">
    <input type="submit" value="submit">
    </form>
    Last edited by Drompo; 29-05-2007 at 01:08 PM.


  9. #9
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Reina View Post
    PHP Code:
    <?php
    if($_GET["action"] == "send") {
    $text $_POST["text"];
    if(
    $text "credits") {
    echo 
    rand() . "\n";
    } else {
     
    echo 
    "You didn't not type credits correctly";
    }
    }
    ?>
    <form name="credits" method="post" action="?action=send">
    <input type="text" name="text">
    <input type="submit" value="submit">
    </form>
    nice, wd
    EDTALKING


  10. #10
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Thanks.
    It works but is VERY Basic. I just made it up as i went along


Page 1 of 2 12 LastLast

Posting Permissions

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