Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subject field auto populated

Status
Not open for further replies.

3112005

Technical User
Nov 28, 2005
58
US
I have job postings that pull from a db on my website and when you click the email link for a particular job it populates the subject field with it's job code.

For some reason some people are getting some jargen in the subject field like this...

Subject: Job Code: 992

When it should look like this...

Subject: Job Code: 992

I guess some browsers or MS Outlook reads the code differently than other. Is there a way to correct this so it works for all?

Code:
Response.Write("<B>Apply:</B> Send an e-mail to <A HREF=mailto:" & rsUserSpec("EMailAddress") & "?subject=Job&nbsp;Code:&nbsp;" & rsNewsItems("JobCode") & ">" & rsUserSpec("FirstName") & " " & rsUserSpec("LastName") & "</A>" & "<BR>")
		Response.Write("<img src=""../shim.gif"" width=""10"" height=""10""> </td>")
[code]
 
Use %20 instead of &nbsp;- it works in Firefox and in IE.

Spaces in URLs are represented by %20, whilst in html it is &nbsp; (just to confuse us!)



A computer always does what you tell it to, but rarely does what you want it to.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top