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!

Displaying image in htm via variable

Status
Not open for further replies.

paulh1111

Technical User
Jun 9, 2003
19
US
Howdy, I'm having trouble displaying an image in asp using html tags. The issue is that the variable is a multi-dimensional array, (which is functioning okay). Here is what I think the code should be, but it doesn't work????

response.write &quot;<input type=image src=OrderArray(0,5) name=pic1>&quot;

Any help would be appreciated.
Paul
 
dont forget your quotes around the values of the tag attribs like src='sumthing.jpg' and you need to take the array value of the image name out string and make it part of the string assignment :



[green]response.write &quot;<input type=[/green][red]'[/red][green]image[/green][red]'[/red][green] src=[/green][red]'[/red][blue]&quot; & [/blue][green]OrderArray(0,5)[/green][blue] & &quot;[/blue][red]'[/red][green] name=[/green][red]'[/red][green]pic1[/green][red]'[/red][green]>&quot;[/green]
 
It worked like a charm. thank you very much.
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top