directions in info window
I have modified the code used to work with the pro maps directions method - it re-loads same page with directions included next to map
<?php do { ?>
var address_0_<?php echo $Recordset; ?> = {
street: '<?php echo str_replace("'", "\'", "".$row_Recordset['address0'] .""); ?>',
city: '<?php echo str_replace("'", "\'", "".$row_Recordset['address1'] .""); ?>',
state: '',
zip: '<?php echo str_replace("'", "\'", "".$row_Recordset['postcode'] .""); ?>',
country: 'UK',
infowindow: 'custom',
infowindowtext: '<span style="font: 10px Verdana, Arial, Helvetica, sans-serif; color: black;"><?php echo str_replace("'", "\'", "<strong>GP:</strong> ".$row_Recordset['firstname'] . " " .$row_Recordset['name'] ."<br>".$row_Recordset['email'] .""); ?></span>' +
'<p style="font: 10px Verdana, Arial, Helvetica, sans-serif; color: black;"><b>Distance & directions</b><br><form name="address" method="get">' +
'<label for="postcode">Your postcode:</label> <input type="text" size=10 maxlength=10 name="postcode" id="postcode" value="" />' +
'<input value="Go" type="submit">' +
'<input type="hidden" name="address" value="<?php echo $row_Recordset['postcode']; ?>"></p>',
full: '<?php echo str_replace("'", "\'", "".$row_Recordset['address0'] .""); ?>, <?php echo str_replace("'", "\'", "".$row_Recordset['address1'] .""); ?>, <?php echo str_replace("'", "\'", "".$row_Recordset['postcode'] .""); ?>, UK',
isdefault: false,
addressType: 'address',
loop: 'Recordset',
latitude: '<?php echo str_replace("'", "\'", "".$row_Recordset['grid_east_m'] .""); ?>',
longitude: '<?php echo str_replace("'", "\'", "".$row_Recordset['grid_north_m'] .""); ?>',
markerStyle: 'Google Traditional (flat)',
markerColor: 'Pacifica'
};