Base64 encode and decode

Discussion in 'PHP' started by Canary-17, Apr 19, 2008.

  1. #1
    hello

    look at code

    <title><?php echo "Php Base64"; ?></title>
    <style type="text/css">
    td { font-family:lucida,verdana;font-size:113px;color:#cccccc; }
    a { color:#ff0000;text-decoration:none;font-family:lucida,verdana;font-size:13px;font-weight:bold; }
    a.visited { color:#ff0000;text-decoration:none;font-family:lucida,verdana;font-size:13px;font-weight:bold; }
    a.hover { color:#ff0000;text-decoration:underline;font-family:lucida,verdana;font-size:13px;font-weight:bold; }
    .form_elements { background-color:#171717;color:#cccccc;font-family:lucida,verdana;font-size:13px;border:1px solid #ff0000;font-weight:bold; }
    body,td,th {
    font-size: medium;
    }
    </style>
    <body style="background-color:#171717;font-family:lucida,verdana;font-size:13px;color:#cccccc;">
    
    <?php
    echo '<center><h5> Coded By Zakaria </h5></center>';
    echo '<center><h5> x2@hotmail.de </h5></center>';
    ?>
    <br>
    <?
    echo "<pre>";
    $b0ri=base64_encode($_POST[zaki]);
    echo $b0ri;
    echo "</pre>";
    print_r('
    <form method="POST" action="">
    <font color=Green>Base64 : </font>
    <input name="zaki" type="text" class="form_elements">
    <input type="submit" class="form_elements" value="Encode">
    </form>
    <form method="POST" action="">
    ')
     ?>
     <br/>
     <hr />
     <?
    echo "<pre>";
    $b0rizQ=base64_decode($_POST[zakaria]);
    echo $b0rizQ;
    echo "</pre>";
    print_r('
    <form method="POST" action="">
    <font color=Green>Base64 : </font>
    <input name="zakaria" type="text" class="form_elements">
    <input type="submit" class="form_elements" value="Decode">
    </form>
    <form method="POST" action="">
    ')
    ?>
    
    Code (markup):
    see u
     
    Canary-17, Apr 19, 2008 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #2
    What to do with the code?
     
    mwasif, Apr 19, 2008 IP
  3. tulihost

    tulihost Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Here you use two different form.you can use one form for decode or encode that likes [ lalonmela.com ]
     
    tulihost, Dec 4, 2011 IP
  4. jenokz

    jenokz Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    is it base64 lesson ?hehe
     
    Last edited: Dec 5, 2011
    jenokz, Dec 5, 2011 IP