[thelist] Give an image a value

James Aylard webmaster at equilon-mrc.com
Fri Jun 8 10:39:19 CDT 2001


Kev,

> Is it possible to give an image a value? What I am trying to do is have a
> group of thumbnails and when one is clicked I want to pass a value onto a
> database where the value corresponds to the primary key in the db. I have

    Why not append a querystring to each anchor's href, and drop the form
altogether? For example:

<a href="photos.asp?key=1"><img src="images/piano.jpg"
   width="198" height="315" alt="" border="0"></a>

    Photos.asp can query the database based on the value it receives via
Request.QueryString("key"), for example.

hth,
James Aylard





More information about the thelist mailing list