Passing lat and long to iframe

Viewed 892

I have an iframe map with it's coordinates, and two inputs with values under them and these values come from the database, i want to pass those values to the map coordinates, how can i do that? here is my code:

 <iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q='+MYLAT+','+MYLONG+'&hl=es;z=14&amp;output=embed"></iframe>

<form>
<div class="form-group">
<input type="hidden" class="form-control" value="Latitude" id="lat">
</div>
<div class="form-group">
<input type="hidden" class="form-control" value="Longitude" id="long">
</div>
</form>

2 Answers
Related