Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-09 21:51:17

Aleksandersen
Member
From: Lillehammer, Norway
Registered: 2007-04-12
Posts: 77

urlencode question

Hi,

I am not sure how to use urlencode. But this would not work anyhow. Please advise.

<txp:php echo('http://url.com/?title=', urlencode(<txp:title />),'&link=', urlencode(<txp:link />),); />

Offline

#2 2007-05-09 23:09:51

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: urlencode question

<txp:php echo('http://url.com/?title=', urlencode(title(array())),'&link=', urlencode(link(array())),); />

Offline

#3 2007-05-15 07:21:10

slackorama
New Member
Registered: 2007-05-15
Posts: 4
Website

Re: urlencode question

This is a really good tip. Could we get it added to the “How do I” faqs page?

Offline

Board footer

Powered by FluxBB