Vely logo Empower C
install  tutorials  examples
documentation  license  about

12.1.0 released on Sep 19, 2022

pf-url



PURPOSE:


Outputs a URL-encoded formatted string.

SYNTAX:


pf-url [ bytes-written [ define ] <bytes> ] <format> <expression> [ , <expression> ]...


DESCRIPTION:


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='?val=<<pf-url "Purchased %s for %lld dollars", piece_desc, price>>&amp;req=update'>Log transaction</a>

See pf-out for more examples.

SEE ALSO:


Output ( finish-output   output_statement   p-dbl   pf-out   pf-url   pf-web   p-num   p-out   p-url   p-web  )  SEE ALL (documentation)



Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Icons copyright PaweĊ‚ Kuna licensed under MIT. This web page is licensed under CC-BY-SA-4.0.