Location: PHPKode > projects > MythPHP > MythPHPv1.0/www/alanadisiparis2.php
<?php include 'header.php'; ?>
<div align="center">
<?php

$uzanti = $_POST['alanadisec'];

include 'ayar.php';

function guvenlik($suz) {
$sansurle = array('CREATE','DELETE','SELECT','FROM','LIMIT','TABLE','MYISAM','*','ORDER','ASC','JOIN','BINARY','WHERE','<','>');
$editle = array('---','---','---','---','---','---','---','---','---','---','---','---','---','---','---');
$isle = str_replace($sansurle,$editle,$suz);

$safhal = mysql_real_escape_string($isle);

if(empty($safhal)){
@mysql_close();
}

return $safhal;

}

$uzantictrl = guvenlik($uzanti);

?>

<form method="post" action="alanadisiparis3.php">
<b>Alan Adý: ("http://" Yazmayýnýz.)</b><br />
<input name="alanadi1" type="text" class="text" size="60" />.<?php echo "$uzantictrl"; ?><br />
<input name="alanadi2" type="hidden" class="text" size="60" value="<?php echo "$uzantictrl"; ?>" />
<b>Varsa Notunuz:</b><br />
<textarea name="mnot" cols="50" rows="6"></textarea><br />
<?php $mbil = $_SESSION['adsoyad']; ?>
<input name="mbilgisi" type="hidden" class="text" size="60" value=\"<?php echo "$mbil"; ?>\" />
<input type="submit" value="Sipariþ Ver">
</form>

<b>Uzantý Bilgisi:</b><br />
<?php
$liste = mysql_query("SELECT kayitfiyat, transferfiyat, yenilemefiyat FROM alanadifiyat WHERE uzanti='$uzantictrl'"); 
while($listele = mysql_fetch_array($liste))
{
$akayit = $listele ['kayitfiyat'];
$atransfer = $listele['transferfiyat'];
$ayenileme = $listele['yenilemefiyat'];

echo "
<textarea cols=\"50\" rows=\"6\">
Uzantý: $uzantictrl
Kayýt Ücreti: $akayit
Transfer Ücreti: $atransfer
Yenileme Ücreti: $ayenileme
</textarea>";
}
?>
</div>
<?php include 'footer.php'; ?>
Return current item: MythPHP