Pf url

Purpose: Outputs a URL-encoded formatted string.

 pf-url <format> , <variable> [ , <variable> ]... \
     [ to-error ] \
     [ to <string> ]

pf-url is the same as pf-out, except that the output is URL-encoded. This means such output is suited for use in URL parameters.
Examples
Create a URL based on arbitrary strings used as URL parameters - for instance space would be encoded as "%20" in the final output:
 @<a href='<<p-path>>/update?val=<<pf-url "Purchased %s for %ld dollars", piece_desc, price>>'>Log transaction</a>

See pf-out for more examples.
See also
Output
finish-output  
flush-output  
output-statement  
pf-out  
pf-url  
pf-web  
p-num  
p-out  
p-path  
p-source-file  
p-source-line  
p-url  
p-web  
See all
documentation


Copyright (c) 2019-2024 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.