URL encode?
| From: | James Burrows | Date: | Tue, 08 Jul 2003 16:16:33 +0000 |
| Subject: | URL encode? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9852@lists.php.net to get a copy of this message | ||
Hi,
Is there some way to url-encode some text using smarty (inside a template)?
For example, I want to do something like this: -
<a href="page.php?a=1b={urlencode(c=3&d=4)}">click me</a>
So that in my php script, a="1" and b="c=3&d=4"
Any help is appreciated!
Thanks,
James