Jump to content

Urlencode Help


savagenoob

Recommended Posts

I have an address in a variable, I pass this address to a google maps page/function that geocodes it and returns the street view.

Heres an example of a link:

<a href="mapget.php?address=<?php echo urlencode(strip_tags($comaddress));?>" name="mapit">Map It</a>

 

The address' come from either a curl or dom request so I have been trying to strip and trim them as much as possible but the urls come out looking like...

 

www.mysite.com/mapget.php?address=7855+N+SOMESTREET+AVE+SOMECITY++++++++++++++++++++++%2C+CA+11111

My maps only seem to be getting the street... I am using urldecode($address) on the receiving page and when I echo $address on the receiving page it looks completely correct.

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/252847-urlencode-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.