<?php
if (!isset($_REQUEST['loc'])) $_REQUEST['loc'] = "San Francisco, CA";
?>
<script type="text/javascript"
src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=hacku"></script>
<div id="jsmapContainer" style="height: 500px; width: 930px;"></div>
<!--<b>-->
<form id="locF" onSubmit="return updateMap();">
<label for="loc">Location:<label>
<input type="text" name="loc" id="loc" size="80"/>
</form>
<!--</b>-->
<script type="text/javascript">
//<b>
var updateMap = function() {
var loc = document.getElementById('loc').value;
jsmap.drawZoomAndCenter(loc,7);
return false;
};
//</b>
var jsmap = new YMap('jsmapContainer');
jsmap.addZoomLong();
jsmap.addTypeControl();
jsmap.drawZoomAndCenter("<?php print $_REQUEST['loc'] ?>", 8);
</script>