Forums

ASP

This topic is locked

How to bring in email link?

Posted 12 Aug 2006 04:26:24
1
has voted
12 Aug 2006 04:26:24 Tina Paulus posted:
I am new to asp. I have dreamweaver mx 2004. I am making my first classifieds pages for my site, on my own. I have the main page and detail pages done except that I want to bring in from the database (using an access database) the sellers email to the detail page. I would like it clickable. (I can bring in not just fine). Is this possible? Please help if you can. I have only done static pages before, so please be patient with me. Thanks.

Replies

Replied 12 Aug 2006 12:25:17
12 Aug 2006 12:25:17 meenu susi replied:
hi...

try this code....

<a href="mailto:<%=user%>"><%=user%></a>

here where user is the variable where i store the emialid of a person from the database...
user=rs("emailid"

regards
mennu
Replied 14 Aug 2006 20:35:32
14 Aug 2006 20:35:32 Tina Paulus replied:
Thanks Mennu, I will try that.
Replied 16 Aug 2006 05:50:06
16 Aug 2006 05:50:06 Charles Knight replied:
you can also add the subject too...

<a href="mailto:<%=user%>"><%=user%>?subject=Some text maybe and<%=(rsRecordSet.Fields.Item("field_1".Value)%> <%=(rsRecordSet.Fields.Item("field_2".Value)%">your text here...</a>

Reply to this topic