Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as PHP by zumsuk ( 15 years ago )
<?php header('Content-type:text/html; charset=utf-8');
if(isset($_GET['i']) && $_GET['i']=='yap'){
if(empty($_POST['ad']) || strlen($_POST['ad']) <= 3){
echo 'Lütfen isminizi 3 karakterden fazla girin<br>';
$hata = True;
}
if(empty($_POST['ad']) || strlen($_POST['ad']) < 2){
echo '10 yaşının altındakileri kabul etmiyoruz kusura bakmayın, yada düzgün girin yaşınızı<br>';
$hata = True;
}
if(!is_numeric($_POST['yas'])){
echo 'Yaş nedir bildin ??<br>';
$hata = True;
}
if(empty($hata) || $hata!=True){
echo '[removed]alert(\'Herşey Tamam\')[removed]';
}
}
?>
[removed]
function Kontrol(){
if (document.yolla.ad.value.length<3){
document.getElementById('uyari')[removed] = 'Lütfen isminizi kontrol edin';
return false;
}
if (document.yolla.yas.value.length<2 || !isNumeric(document.yolla.yas)){
document.getElementById('uyari')[removed] = 'Lütfen yaşınızı düzgün girin';
return false;
}
return True;
}
[removed]
<br>
<div id="uyari" stlye="border:1px solid red; width:80%; margin:0 auto;">
</div>
<br>
<form action="?i=yap" method="post" name="yolla">
Adınızı girin : <input type="text" name="ad" <?php if(isset($_POST['ad'])) echo 'value="'.$_POST['ad'].'"'; ?>><br>
Yaşınızı girin : <input type="text" name="yas" <?php if(isset($_POST['ad'])) echo 'value="'.$_POST['yas'].'"'; ?>><br>
<input type="submit" value="Yolla">
</form>
Revise this Paste
Parent: 36256