Variable in writing hyperlink url

J

Jas

Hi There

Can someone tell me how to use varaibles when writing the hyperlinks.

What we have is the server name and the port number of our application
defined in the include file.

instead of hardcoding the name of the server in the application when sending
emails out like

<a href="http://myservername:2500">Click here to login</a>

I would like to use something like this

<a href=strserver>strMessage</a>

but don't know how to do it.
the varaibles strServer and strMessage are defined in the include file

any help is appreciated
 
P

PB4FUN

<a href=<%=strserver%>><%=strMessage%></a>

Or

<%
Response.Write "<a href=""" & strserver & """>" & strMessage & "</a>"
%>

Where the second option would be slightly (but probably not notable) faster

Meindert, MCP
 

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,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top