Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pataisykit koda ;[

Parašė sidicer· 2010 Vas. 21 23:02:28
#1

<html>
<?php include('header.php'); ?>
<?php include('parankine.php'); ?>
<?php $ip = $_SERVER['REMOTE_ADDR']; ?>
<div id='index'>
<?php
$base = $_GET['base'];

if($base == ""){
  echo "<form action='?base=2' method='post' align='center'>
  <center>Textas Kuri Uzkoduosite Base-64 Koduote:
  <br><input type='text' name='name'><br><input type='submit' name='gen' value='Generuoti'> <input type='submit' name='de' value='deGeneruoti'></center>
  </form>";
}
if($base == "2"){
  if($_POST["gen"]);{
  $text = $_POST['name'];
  $code = base64_encode("$text");
  echo "<center><br><br>'$text' = base64_encode('$code');<br><br></center>";
}
elseif($_POST["de"]);{
  $text = $_POST['name'];
  $code = base64_decode("$text");
  echo "<center><br><br>'$text' = base64_decode('$code');<br><br></center>";
}
}
?>
 </div>
 <?php include('footer.php'); ?>
 </html>





error:
Parse error: syntax error, unexpected T_ELSEIF in /home/***/domains/***/public_html/base.php  on line 21



Redagavo sidicer· 2010 Vas. 21 23:02:42