I found a Google Gadget that basically gets driving directions that I want to use on my web site. Basically there are two text boxes: one for starting point, and one for destination. I want the destination box to be filled in based on a php variable that controls the location.
1) Currently this is being placed in the body of my page.
What I have been able to accomplish so far is this:
<?php print("var resloc = " . $goomapsloc . " \
Php will write the java code so that I can easily pass the variable. I have the alert to test that it is passed correctly (and it is working).
I have tried to do an src-"http://google.com. . blah. . blah. . loc="+resloc+"&. . blah blah blah"
But this is not working. Nothing I have tried seems to work.
Here is the untouched src code that I need to pass my variable within: