<form action=”kele.php” name=”tktk” method=”post”>
<input type=”text” value=”" name=”sea”/>
<input type=”submit” name=”submitkele” value=”Kele产品价格查询” >
</form>

<?php
if($_POST['submitkele']){
$seac=$_POST["sea"];
$url=”http://www.kele.com/templates/search.aspx?s=”.$seac;
$fg=@fopen($url,”r”) or die(“超时”);
$contss=file_get_contents($url);
eregi(“<table border=\”0\” cellspacing=\”0\” class=\”skuListTable\”>(.*)</table>”,$contss,$con);

$con[0]=str_replace(“src=\”/img/test.png”,”src=\”http://www.kele.com/img/test.png”,$con[0]);
$con[0]=str_replace(“href”,”name”,$con[0]);
print($con[0]);
if($con[0]==”"){
echo”No part number results found.”;
}
}
?>

Sorry, the comment form is closed at this time.

   
© 2012 Ai-WEB的博客 Suffusion theme by Sayontan Sinha