php - echo variable and select it -


i'm trying echo variable search box placeholder , value search box search on google maps.

the variable $address

$address = $_session['mylocation']['address']; 

and in html i've 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, choose value echoed , change location echod value i've click inside text form box , click away, detects location, need automatically without clicking inside form

i've added chunk of code loads map http://pastebin.com/xmzixwiw

are passing variable in input javascript function via on change event?

if you may need create 2 listeners 1. "change event" capture new values put in input field 2. "document ready event" grab value passing via php , use when building map.

not sure if how going things helps. if off base here, can share more of work can see how initiating map , updating it.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -