I\'m trying to make so when a user selects a country in a form and clicks submit, it redirects them to a page that has an embedded google maps widget that also is showing the co
q
is the parameter you use for address
<iframe
src="https://www.google.com/maps?z=4&f=q&output=embed&q=<?=$country?>">
</iframe>
you have to get a Google API key which is free then what your doing would work.
<?php
$country = "United States";
?>
<div id="map">
<iframe
width="600"
height="450"
frameborder="0" style="border:0"
src="https://www.google.com/maps/embed/v1/place?key={YOUR KEY HERE}&q=<?=$country?>" allowfullscreen>
</iframe>
</div>