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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing variable when link is clicked

Status
Not open for further replies.

luvfool313

Technical User
Apr 12, 2002
3
0
0
US
Hi,

I'm in the process of creating an image database where a keyword search returns a table of thumbnails. I want to go to another page with a larger version of the image when the thumbnail is clicked. Is there any way to pass the variable/image id when the image is clicked so that the correct image is shown? Any suggestions/ideas/solutions would be greatly appreciated! :)
 
do while not objRS.EOF
strHTML = strHTML &_
&quot;<a href='showPic.asp?id=&quot; & objrs(&quot;id&quot;) & &quot;'>&quot;&_
&quot;<img src='&quot; & objrs(&quot;src&quot;) & &quot;'></a>&quot;
objrs.movenext
loop

response.write strHTML Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048
Tek-Tips Best Practices: FAQ183-3179
mikewolf@tst-us.com (Do not email regarding this thread unless requested - I don't check this account regularly)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top