Re: [PHP] Passing URL as variable

2002-06-20 Thread Chris Boget
> Most links being passed to clickrate do not have this particular problem. > Is it a problem if I pass all URL through urldecode, for those cases when I > need it, i.e. will it mess up a URL that hasn't been encoded with urlencode? Run a little test script to see for yourself, but I don't beli

Re: [PHP] Passing URL as variable

2002-06-20 Thread Lisi
Thanks, I knew there was a function I was missing. Most links being passed to clickrate do not have this particular problem. Is it a problem if I pass all URL through urldecode, for those cases when I need it, i.e. will it mess up a URL that hasn't been encoded with urlencode? Thanks, -Lisi

Re: [PHP] Passing URL as variable

2002-06-20 Thread Michael Sweeney
You need to run the link value through urlencode() before you stick it in the url. When you need to read it as a legal url again, pass it through urldecode(). ..michael.. On Thu, 2002-06-20 at 11:20, Lisi wrote: > I have the following link in my code: > > >clickrate.php?site=sitename&link=htt

Re: [PHP] Passing URL as variable

2002-06-20 Thread Chris Boget
> The problem is that since the link itself has variables being passed, > action is being passed as a separate variable and the full link is getting > cut off. > I tried using htmlspecialchars, and surrounding the link with quotes, but > nothing worked. You can try urlencode(). The problem wi

[PHP] Passing URL as variable

2002-06-20 Thread Lisi
I have the following link in my code: clickrate.php?site=sitename&link=http://www.clientsite.com/store.php?id=430&action=menu There are two variables I am trying to pass to clickrate, site and link. The full link is http://www.clientsite.com/store.php?id=430&action=menu. The problem is that si