u ()

Description

Returns a URL-encoded version of a string.

 string u( string input )

This is useful when passing a query string parameter as part of a link.

If there is any possibility that a parameter value might contain special characters such as spaces, you should use the u( ) function on that parameter.

Example

 http://www.mysite.com?username={u(username)}&name={u(name)}
Top