Gossamer Forum
Home : General : Internet Technologies :

Html mailto help with asp

Quote Reply
Html mailto help with asp
   

I need to pass an address that uses & from my asp script into a mailto item in html but cant get the right address to appear in the body. Any help would be greatly apreciated!

<p><a href="mailto:?&subject=Stock# body = http://www.qualitytruckcarecenter.com/...w&id=<%= rstDBEdit("id") %>">Email</a></p>



this is one of the url's that would be passed to the body...

http://www.qualitytruckcarecenter.com/...tion=view&id=104

But when i try it will cut off at the "&" in the url and only send part of the domain or send nothing at all to the body of the e-mail! Thanks!

-MessiahBob
Quote Reply
Re: [MessiahBob] Html mailto help with asp In reply to
Just use %26, which is the hex value for '&'

Your line would look like this:

<p><a href="mailto:?&subject=Stock# body = http://www.qualitytruckcarecenter.com/cgi-bin/inventory/usedinv.asp?action=view%26id=<%= rstDBEdit("id") %>">Email</a></p>