Forum Moderators: open
I am trying to get the following link to work:
<a href="hotel-directory-by-city.htm?area=Aberdeen & Region">Aberdeen & Region</a>
but the browser is naturally, interpreting the & part as starting a new key=value part.
Is there any way that i can get this link to work - whilst still keeping the "&" character?
Many thanks for your help
Alina
<a href="hotel-directory-by-city.htm?area=Aberdeen%20&%20Region">Aberdeen%20&%20Region</a>
&#x26;%38 can be used to represent the ampersand &
so you could have either:
Aberdeen%20&%20Region
or
Aberdeen%20%38%20Region
I would use option 1.
Is this what you mean?
-George
[edited by: Alternative_Future at 12:03 pm (utc) on April 1, 2005]
It's the one that worked for the poster!
<a href="hotel-directory-by-city.htm?area=Aberdeen%20%26%20Region">Aberdeen & Region</a>
I mistyped %30 (which is the decimal encoding for the ampersand) when it should have been %26 which another poster pointed out. My post said either use of &%38 would work with my preferred option being the first. So by using the first all should have went well.
The #x26 is again another representation of the ampersand HEX value which can be used as &
-George