Bot ile veriyi normal olarak çekiyorum , ancak jquery ile formun alt tarafında göstermeyi yapamadım bir türlü. Javascript bilgim azdır jquery dökümanlarınada göz attım ancak istediğim cevabı bulamadım malesef.
sonuc div'inin içinde görünmesi lazım sonucların ama bot.php'ye yönleniyor.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fasafiso</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('a').submit( cekpas );
});
function cekpas() {
$('#sonuc').html('Acele yok ! Bekleyin...');
$.ajax({
type: "GET",
url: "bot.php",
data: $('form#form1').serialize(),
success: function(cektik){
$('#sonuc').html(cektik + '<br />').slideDown('slow');
}
});
}
</script>
</head>
<body>
<form id="form1" name="form1" method="GET" action="bot.php">
<input type="text" name="aranan" value="" />
<input type="submit" value="Arama Yap" onclick="javascript:cekpas();" />
</form>
<div id="sonuc"></div>
</body>
</html>Buda bot.php<?php
$Aranan = $_GET["aranan"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.xxx.com/?vse=$Aranan&=ara&*****=on");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$videolar = curl_exec($ch);
curl_close($ch);
preg_match_all('#<div class="info-left"> <a title="(.*?)" href="http://www.xxx.com/video/(.*?)/(.*?)">
<img src="(.*?)" alt="(.*?)" border="0"/> </a> </div>#si',$videolar,$geldi);
for($x=0; $x<=count($geldi["2"]); $x++) {
echo "http://www.xxx.com/video/".$geldi["2"][$x].$geldi["3"][$x];
echo "<br />";
}
#print_r($geldi);
?>