Forums

This topic is locked

How to implement a variable in HTML images

Posted 06 Nov 2002 20:23:41
1
has voted
06 Nov 2002 20:23:41 Bill Aten posted:
I have the following code:
<td><img src="/Main/Forms/20793.jpg" width="850" height="1100"></td>

How do I employ a variable in place of the '20793'?

CharlieB

Replies

Replied 07 Nov 2002 11:22:51
07 Nov 2002 11:22:51 Vince Baker replied:
<%
Dim strImageVar
strImageVar = "/main/Forms/" & rsYourRecordset.fields.item("Yourfieldname".value
%>

<td><img scr="<%=strImageVar%>" width..........

Regards
Vince

Response.write("The best line of code you can ever use"

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic