Yazılan tc nin Sınav Sonuçlarını Getiren Kod parçacığı..
<HTML>
<HEAD>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-9">
<meta http-equiv="content-language" content="TR">
<title>Aöf Sonuçları</title>
</HEAD>
<BODY>
<?php
$gonder=strip_tags($_POST['gonder']);
if ($gonder=='Sorgula') {
$tc=strip_tags($_POST['tc']);
$agent = "Mozilla/5.0 (X11; U; Linux x86_64; en; rv:1.9.0.19) Gecko/20080528 Epiphany/2.22";
$url = "http://aofsinav.anadolu.edu.tr/guncel_not.asp";
$post='no='.$tc;
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_REFERER, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$veri = curl_exec($ch);
curl_close($ch);
echo $veri;
}else {
echo '
<form action="" method="post">
<fieldset style="width:200px";>
<legend>Tc Kimlik No:</legend>
<input type="text" name="tc" maxlength="11"><br>
<input type="submit" name="gonder" value="Sorgula">
</fieldset>
</form>';
}
?>
</BODY>
</HTML>Belki işinize yarar