i'm trying to echo a variable to a search box to be the placeholder and the value the search box will search on google maps.
the variable is $address
$address = $_SESSION['mylocation']['address'];
and then in html i've this form
<input name="custom[map_location]" id="form_map_location" class="controls" type="text" placeholder="<?php echo $address ?>" value="<?php echo $address ?>">
the variable echos fine, but to really choose the value echoed and change the location to the echod value i've to click inside the text form box and then click away, then it detects the location, i need to do this automatically without clicking inside the form
i've added a chunk of the code that loads the map http://pastebin.com/XMZiXwiW