Home Tour Demo FAQ App Gallery Buy Now    
Home > Template Tags > How to place values inside a link?


How to place values inside a link?

{URLENCODE}

When you want to pass a user generated entry into a URL. You should encode the value in order to prevent any problems.
This is called URLENCODING by encoding you can safely carry any value with your URL. In order to do this you should use {URLENCODE:fieldName} tag.

Example:
 Lets say you want to pass blog title in URL and the title is "Mike & Jill on vacation" it will cause problem on your URL because title contains spaces and "&" sign in it. In order to fix this it should be encoded as "Mike+%26+Jill+on+vacation"
Memberkit can do this for you. Just use title as {URLENCODE:title} instead of {title}

You can also do the exact opposite with {URLDECODE:fieldName}, this tag decodes the given encoded string.




Tags: template tags
Related Articles:


Add a new comment

Send Comment

 
 
Customer Log-in | Support Forums | User Guide | Free Form Builder | Contact Memberkit Team