Sign in to follow this  
grantmcnally

question marks in link attribute not showing up

Recommended Posts

if i setthe link attribute in a map to this:

 

 

 

 

 

 

anything after the .php doesn't show up after you click the link... eg. it goes to regions/oceania.php NOT regions/oceania.php?get=1

 

 

 

 

 

is there any particular reason for this?

 

 

 

 

 

thanks

Share this post


Link to post
Share on other sites

You have to URL encode the link's value :

 

 

 

Use urlencode() PHP function to encode the link say, urlencode("regions/oceania.php?get=1") before setting this as link's value.

 

 

 

The encoded link may look like this : regions/oceania.php%3Fget%3D1

 

 

 

Finally the XML element will be like this :

 

 

 

[entity id='AU' link='regions/oceania.php%3Fget%3D1' displayValue='OC' toolText='Oceania' value='18' /]

 

 

 

*NOTE : please read [ as < and ] as >

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this