|
Hi all,
I am new to this so please be kind.
I have a buuton link on a page:
<a href=location_map.php?lat=<?php echo $row_accomm_counties['lat']; ?>&lon=<?php echo $row_accomm_counties['lon']; ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('location_map','','../images/map_ov.gif',1)"><img src="/images/map_up.gif" alt="Location map" name="location_map" width="23" height="23" border="0"></a>
Embedded in the link are 2 PHP variables:
<?php echo $row_accomm_counties['lat']; ?>
<?php echo $row_accomm_counties['lon']; ?>
On the same page I have:
<script language="JavaScript" type="text/JavaScript">
<!--
function location_map()
{
window.open("/forum/location_map.html","location_map","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=375,top=250,left=300");
}
//-->
</script>
What I am trying to do is when the button is clicked, call the function and execute it so it calls:
location_map.php?lat=<?php echo $row_accomm_counties['lat']; ?>&lon=<?php echo $row_accomm_counties['lon']; ?>
Append the php variables to the name of the called page.
Can anyone please try and help me.
Many thanks in advance, keep safe and well.
Dereck
|
|
|
|
|
|
|
|