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!

a href to a variable

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
hi guys....

i want to do this:

<a href=&quot;new.asp?cop=[a variable]&quot;>add new</a>

how to put the variable so the system will found it?

can this be done?
thanks
 
Try:
<% Response.Write &quot;<a href=&quot;&quot;new.asp?cop=&quot; & [a variable] & &quot;&quot;&quot;>add new</a>&quot; %>

That should work for you!

HTH,

Stuart.
 
Or try:

<a href=&quot;new.asp?cop=<%=yourVariable%>&quot;>add new</a>

OR:

Response.Write &quot;<a href='new.asp?cop=&quot; & yourVariable & &quot;>add new</a>&quot;

Hope that helps.

Paul W.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top