spyke01
02-24-2003, 07:38 AM
ok guys trying to make a base64 encoder/decoder this is what i got, but it doesnt work if you can, can you help me put it all in one page?
::base64.php::
<link rel="stylesheet" type="text/css" href="stylesheets/rpg.css">
<body bgcolor=black text=white>
<h3>-==Base 64 Encode==-</h3><hr width=400 align=left>
<form method="post" action="base64run.php">
<textarea name="encode" rows="5" cols="50"></textarea><br>
<input type="submit" name="encodebox" value="Encode" class="dlbutton">
</form>
<P>
<h3>-==Base 64 Dencode==-</h3><hr width=400 align=left>
<form method="post" action="base64run.php">
<textarea name="decode" rows="5" cols="50"></textarea><br>
<input type="submit" name="decodebox" value="Decode" class="dlbutton">
</form>
::base64run.php::
<link rel="stylesheet" type="text/css" href="stylesheets/rpg.css">
<body bgcolor=black text=white>
<h3>-==Base 64 Encode Results==-</h3><hr width=400 align=left>
<? echo base64_encode($encode); ?>
<P>
<h3>-==Base 64 Dencode Results==-</h3><hr width=400 align=left>
<? echo base64_decode($decode); ?>
::base64.php::
<link rel="stylesheet" type="text/css" href="stylesheets/rpg.css">
<body bgcolor=black text=white>
<h3>-==Base 64 Encode==-</h3><hr width=400 align=left>
<form method="post" action="base64run.php">
<textarea name="encode" rows="5" cols="50"></textarea><br>
<input type="submit" name="encodebox" value="Encode" class="dlbutton">
</form>
<P>
<h3>-==Base 64 Dencode==-</h3><hr width=400 align=left>
<form method="post" action="base64run.php">
<textarea name="decode" rows="5" cols="50"></textarea><br>
<input type="submit" name="decodebox" value="Decode" class="dlbutton">
</form>
::base64run.php::
<link rel="stylesheet" type="text/css" href="stylesheets/rpg.css">
<body bgcolor=black text=white>
<h3>-==Base 64 Encode Results==-</h3><hr width=400 align=left>
<? echo base64_encode($encode); ?>
<P>
<h3>-==Base 64 Dencode Results==-</h3><hr width=400 align=left>
<? echo base64_decode($decode); ?>