How to use href for email address pulled from database

J

Jack

Hi, I have the following code which displays email address from a database
However, I need to have the email address highlighted so that on clicking
the email box would open up with the email name filled in. Any thoughts or
help is appreciated.
Thanks.

CODE:

If Not IsNull(Recordset1("PeopletEmailAddress")) then Response.Write
Recordset1.Fields("PeopletEmailAddress")
Response.Write "</TD>"
 
R

Ray Costanzo [MVP]

How would you do it if it where just a static html page you were writing?

<a href="mailto:[email protected]">[email protected]</a>


So, how about

If Not IsNull(Recordset1("PeopletEmailAddress")) then
Response.Write "<a href=""mailto:" &
Recordset1.Fields("PeopletEmailAddress") & """>" &
Recordset1.Fields("PeopletEmailAddress") & "</a>"
Response.write "</td>"
End if

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top