|
Posted by styliek on 03/05/07 21:59
Hmm where to start, im working on a little web project for myself and
for added functionality i want to incorporate the google map api into
it so a person can click an address and been shown a map that
corresponds to that address.
They perform a search of my database and it returns a bunch of
results, name, address phone number, etc..
ideally i would like to create a button or a hyper link that they can
press next to the name result that would show them into my map api
page and pass the address variables along with it
here is some script that i create so the users can see all the
relevant results to their search
while ($row= mysql_fetch_array($result)) {
echo"<table border ='1' bgcolor = '#CCFFFF' align ='center' >
<tr>
<td width ='550' height = '60'> {$row['Name']}
{$row['Name']}
{$row['Phone_Number']}
{$row['Address']}
{$row['County']}
<a href=".$row['Website'].">Website Address</a>
//// This is where i dont know what to do ???????
<form name ='Map' action='./map.php' method ='post'>
"$mapaddress = .$row['Address'];"
<input name='Map' type='submit' width='' class='btn' value='Map' >
</form>
/////////////////////////////////////////////////////
</td>
</tr>
</table>";
As you can see I cant figure out a way to post the address variables
to the page with the google api. Does anyone have any experience in
this, any help or pointers greatly appreciated
Navigation:
[Reply to this message]
|