[thelist] Give an image a value

Eric Cestari eric at ohmforce.com
Fri Jun 8 10:34:29 CDT 2001

Hi Kev

Yes it's possible, but not exactly the way you put it.

<a href="photos.asp?photothumbs1=1">  <--- Notice the GET parameter
<img src="images/piano.jpg" width="198" height="315" alt="" border="0">

In your script photo.asp, fetch 'photothumbs1' from the query string, and
generate the according page with the image.


----- Original Message -----
From: Kevin Stevens <kjs at ratking.co.uk>
To: <thelist at lists.evolt.org>
Sent: Friday, June 08, 2001 5:28 PM
Subject: [thelist] Give an image a value

> 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
> tried putting the image into form with a hidden input type but it won't
> the value, eg
> <form name="thumbform" method="post" action="photos.asp">
> <a href="photos.asp"><img src="images/piano.jpg" width="198" height="315"
> alt="" border="0"><input type="hidden" name="photothumbs1" value="1"></a>
> </form>
> Is this possible?
> Kev
> kjs at ratking.co.uk

More information about the thelist mailing list