Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default What am I doing wrong?

    I've made a code that muddles up letters and numbers, but it just won't work. I've been looking at it for like 15 minutes and I can't figure out whats wrong :S

    PHP Code:
    <?php
    $normal 
    = array(
                          
        
    "a""b""c""d""e""f""g""h""i""j""k""l"
        
    "m""n""o""p""q""r""s""t""u""v""w""x"
        
    "y""z""1""2""3""4""5""6""7""8""9""0"
        
    "A""B""C""D""E""F""G""H""I""J""K""L",
        
    "M""N""O""P""Q""R""S""T""U""V""W""X",
        
    "Y""Z"" ",

    );
                    
    $mixed = array(
                          
        
    "h""c""a""E""9""z""N""F""7""O""8""P",
        
    "D""6""5""x""0""y""H""G""g""L""p""S"
        
    "o""w""n""v""b""A"" ""j""M""i""K""k"
        
    "R""l""4""3""r""Q""u""e""f""2""1""T",
        
    "t""C""m""U""W""J""d""I""q""Z""V""X"
        
    "Y""s""B",

    );

    if ( isset ( 
    $_GET['encode'] ) ) {
        
    $data $_GET['encode'];
        
    $data str_replace$mixed$normal$data );
    }
    else if ( isset ( 
    $_GET['decode'] ) ) {
        
    $data $_GET['decode'];
        
    $data str_replace$normal$mixed$data );
    }
    echo 
    $data;
    ?>
    Any ideas whats wrong?
    Lets set the stage on fire, and hollywood will be jealous.

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Hi,

    Have you managed to solve your error yet?

    Thanks

Posting Permissions

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