Gossamer Forum
Home : General : Internet Technologies :

Ampersand & in url

Quote Reply
Ampersand & in url
How do I post a link in URL with ampersand sign "&"

ie I have this forum/post.cgi?this=whatever&that=something&url=www.otherweb.com/cgi/this.cgi?hmm=1&thisisproblem&whatisthis=123

What I am trying to do is post url variable on my script post cgi. But you see how the url I am trying to post has this & sign, and it just stops on that point. How do I get the whole URL www.otherweb.com/cgi/this.cgi?hmm=1&thisisproblem&whatisthis=123 posted?




SOLVED :)

Last edited by:

Suomi: May 14, 2002, 7:24 PM
Quote Reply
Re: [Suomi] Ampersand & in url In reply to
Try escaping the '&' by putting a "\" before each one... (ex: forum/post.cgi?this=whatever\&that=something\&url=www.otherweb.com/cgi/this.cgi?hmm=1\&thisisproblem\&whatisthis=123)

Sean
Quote Reply
Re: [SeanP] Ampersand & in url In reply to
Thanks I got it working by replacing & with "%26" :)