I have been driven mad today by what seems like a simple problem.
I have a number of very long URLs that I store in to variables. These URLs are GET urls.
Once I have a URL stored they can be 300-400 chars in length.
If I echo $url it displays correctly.
If I use header("Location: $url");
the page correctly appears.
BUT If I try to place in a link <a href='$url' ></a>
The Url gets truncated after about 140 characters. The truncation is at the same point for each distinct URL but the number of charcters varies for other URLs (but not by much)
I tried cutting and pasting the URL straight in to the <a href and I get the same truncation at the same point which leads me to believe this has nothing to do with encoding/decoding which I have tried every which way.
Can anyone tell me what is going on and/or a workaround?
Thanks, Jon