How to embed the user address using google map in php

If you want to display the user's address in google map in their profile’s page. It is very simple follow these procedure.

Generally in user registration we store the user information like country, state, city or even taken the address fields. Do you want to display the user's address map on their profile page. You must need the address of the user.

This simple piece of code going to display the user's address in embed google map.
<?php  
 $userAddress ="Arundelpet, Guntur, Andhra Pradesh, India";  
?>  
<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.it/maps?q=<?php echo $userAddress; ?>&output=embed">  
</iframe>   
Out put:


* If you like this post please don’t forget to subscribe Techies Badi - programming blog for more useful stuff


EmoticonEmoticon