PDA

View Full Version : email syntax question


gcapp
09-26-2002, 04:23 PM
I have this line of asp code:

<% If rsbb("Email") <> "" Then%>Email: <a href=(<%=rsbb("Email")%>)><%=rsbb("Email")%></a><%End If%>

It works, but when you click on the email link I get an error and i know it's becuase I don't have the "Mailto" part in the code.

Can someone give me the code to insert in the statement above or give me the correct code for email in general?

Thanks,
Gary

whammy
09-26-2002, 05:18 PM
<% If rsbb("Email") <> "" Then%>
Email: <a href="mailto:<%=rsbb("Email")%>"><%=rsbb("Email")%></a>
<%End If%>

is one way to do it...