$url = 'http://diffent.com/map/mapit9.php';
// In the $points string variable, the format requirement is
// to separate successive numbers by at least one blank space.
// No need to put the successive points on successive lines.
// This $points can be of course filled programmatically rather than
// hard coded as in this example.
$points = '34.0 -118.4 3.0
34.1 -118.5 2.2
34.2 -118.4 2.9
34.15 -118.3 4.4
34.2 -118.6 1.5';
$fields = array('thedata'=>urlencode($points),
'xresInput'=>urlencode('20'),
'yresInput'=>urlencode('20'),
'lowercutoffInput'=>urlencode('0.0'),
'blendInput'=>urlencode('7'),
'xsizeInput'=>urlencode('800'),
'ysizeInput'=>urlencode('600')
);
foreach($fields as $key=>$value) {$fields_string .= $key.'='.$value.'&';}
rtrim($fields_string,'&');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, count($fields));
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
$result = curl_exec($ch);
curl_close($ch);
?>