urlencode(
URL
)
The urlencode( function converts text into a legal URL (by converting spaces into %20
).
Parameters
This function has one parameter:
url – text you want to make into a legal URL.
Description
This function converts text into a legal URL (by converting spaces into %20
).
urlencode("now is the time") ☞ now%20is%20the%20time
Depending on your application, you may want to encode additional characters beyond the space. Using the percentescape( function, you can easily escape whatever characters you want. The RFC 2396 standard discusses different options for escaping characters when creating a URL.
See Also
- cgilink( -- creates a domain independent URL for another CGI action on the same server.
- cgilinknewwindow( -- creates a domain independent link for another CGI action on the same server that opens a new browser window.
- cginavlink( -- creates a domain-independent navigation link for the current record in this database.
- cginavlinknewwindow( -- creates a domain-independent navigation link (to a new browser window) for the current record in this database.
- htmldecode( -- converts HTML text into regular text by converting any special HTML entities (`&`, `©`, etc.) into the corresponding characters.
- htmlencode( -- converts standard text into HTML text by converting any special characters into the equivalent HTML entities.
- urldecode( -- decodes text that contains percent encoded characters.
- webformlink( -- generates a link to a Panorama form on the current web site (the link will open in a new browser window).
- webformlinknewwindow( -- generates a link to a Panorama form on the current web site.
- weblink( -- builds an HTML link tag
- weblinknewwindow( -- builds an HTML link tag
History
10.0 | No Change | Carried over from Panorama 6.0 |