Forum Moderators: open

Message Too Old, No Replies

How to replace & with valid characters

         

Tomasm

11:42 am on Apr 27, 2006 (gmt 0)

10+ Year Member



How can I replace & with whatever valid in URL address, so the linked page still displays correctly?

My orignal posts were removed because of example links, so I can't give an exact example.

Part of the link was
default.asp?view=album&id=...

When I replaced it with
default.asp?view=album&id=...

the page with the link was valid, but the target page didn't display correctly.

So & trick doesn't work.

Any suggestions?

Thanks.

[edited by: BlobFisk at 4:35 pm (utc) on April 27, 2006]

Fotiman

2:45 pm on Apr 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Suppose you want to link to:

/edposts.cgi?action=reply&forum=21&discussion=12142

Your HTML code should look like this:

<a href="/edposts.cgi?action=reply&amp;forum=21&amp;discussion=12142">reply to this topic</a>

Valid, and the links will work.

ChadSEO

4:31 pm on Apr 27, 2006 (gmt 0)

10+ Year Member



Tomasm,

Are you testing these links from a webpage, or pasting them into the address bar on your browser? If you are pasting into the address bar, then they will not work correctly. If they are on a webpage, when you mouse over the link, does it display the correct URL? What browser(s) are you using?

Chad

Tomasm

7:02 pm on Apr 27, 2006 (gmt 0)

10+ Year Member



Alright, Cheo, that was it! Of course I was testing them directly in the URL bar...

From the webpage it works perfectly.

Thanks!

Tomas