<body>
<form id=”form1″ name=”form1″ method=”post” action=””>
<p>
<label>Yaşını Gir Canıııımmmm
<input type=”text” name=”yas” id=”yas” />
</label>
</p>
<p>
<label>
<input type=”submit” name=”button” id=”button” value=”Gönder” />
</label>
</p>
</form>
<?php
if (isset($_POST[“yas”])){
$yas = $_POST[“yas”];
echo “<h1> $yas </h1>”;
if ($yas <=14) {echo “Hoş geldin bebe “;
echo “<img src=bebe.jpg>”;}
if (($yas>14) and ($yas<20))
{echo “Ergen Ergen gülben Ergen”;}
if (($yas>=20) and ($yas <45)){
echo “Evli Mutlu Çocuklu :P”;}
if ($yas>45){
echo “Emekli de olursun sen :D”;
}
}
?>
</body>
Bir yanıt bırakın Cevabı iptal et