Forum Moderators: open

Message Too Old, No Replies

Why are these links acting up? Browser maybe?

         

wickedmoon

1:46 pm on Apr 20, 2005 (gmt 0)

10+ Year Member



I use this format for some of my links to embed images into a page:

page.php?url=image1.jpg&url2=image2.jpg

However, occasionally someone will write and tell me the link is broken. But the link they're sending me is this:

page.php?url=image1.jpg&url2=image2.jpg

I wondered what might change the & to &? I don't know what browsers they're using yet, but would this rewriting of the ampersand be caused by that? How can I stop it from happening?

tedster

12:08 am on Apr 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't have a definitive answer for you, but here are some related threads that might give you some directions to look into:

[webmasterworld.com...] (PHP forum)

...and here:
[webmasterworld.com...] (JS Forum)

...where the resolution was:

I've solved the escape-the-ampersand-problem by going over to ';' instead.
In php you have to change two settings -
arg_separator.output = ";"
arg_separator.input = ";"