I've seen some questions regarding PHP screen scrapes...here is how I've been doing it. This is an example using info from mapquest. Try this out and see if it works...play around with it using form inputs, etc.
<?
$Address = ""; // input street address
$City = "Nashville"; // input city
$State = "TN"; // input state
$Zip = ""; // enter if known
$zoom = "8" // default zoom
$dtype = "s" // s for map, a for photo
$remote_file = "http://www.mapquest.com/maps/map.adp?dtype=".$dtype."&address=".$Address."&city=".$City."&state=".$State."&zipcode=".$Zip."&zoom=".@$zoom."&submit.x=0&submit.y=0, 'r'";
if( ! ($fp = fopen($remote_file, "r")) )
die("Trouble opening that file");
while( $data = fread($fp, 1024) ) {
// Find the map image
if (preg_match("/<input type=image name=map[>]+>/", $data, $matches)) {
$mapIMG = eregi_replace("(width=[0-9]+|height=[0-9]+)", "", $matches[0]);
}
// Find the map address
if (preg_match("/<td class=maptitle>(.*)<\/td>/", $data, $matches)) {
$mapAddress = $matches[1];
}
}
?>
<table align=center>
<tr>
<td><?=$mapAddress?></td>
</tr>
<tr>
<td><?=$mapIMG?></td>
</tr>
</table>