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
Here you use two different form.you can use one form for decode or encode that likes [ lalonmela.com ]