RE: [PHP] <input type = image ... >

From: Date: Mon, 06 Nov 2000 16:54:57 +0000
Subject: RE: [PHP] <input type = image ... >
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23916@lists.php.net to get a copy of this message
If I do that, the other <input ... > tags inside the form are not passed. | -----Original Message----- | From: Sharon Spurvey [mailto:merle.pittman@ns.sympatico.ca] | Sent: Monday, November 06, 2000 7:35 AM | To: RAbbott@calstatela.edu | Subject: Re: [PHP] <input type = image ... > | | | pass a var with your image link. | example: | | the image code; | <a href="somefile.php?value=somevalue"><img src="someimage.gif"></a> | | the code in somefile.php: | | any time you want the value just use $value and it will return the value | "somevalue" | | merle | | Russ Abbott wrote: | | > I'd like to use a tag such as <input type=image name=n value=v> | > to pass v as a value of $n, but it doesn't seem to work. | > | > I have this tag inside a form, and clicking on the image does trigger | > the program pointed to by the form, but $n is not bound to anything. | > (Other <input ... > tags have their values posted properly.) | > | > If I change type=image to type=submit, a button is generated and $n | > is bound to v as expected. Is there some way to substitute an image | > for a button and associate data with the image? | > | > I want to have a group of images, each with a different data value, | > and then have the program be told which image was clicked. | > | > Thanks. | > | > -- Russ Abbott |

« previous php.general (#23916) next »