Get value from form submit using image
Posted on 2002-04-10
I am using images as a method of submitting a form. This is because images look so much better than a grey button :-) Each image is designed to submit the form and process it depending upon the button clicked.
However, after submitting the form the asp page that receives it is unable to retrieve the value of the submit image. I know that using an ordinary button the value is passed along with the form and is retrievable using Request.Form("buttonname"). This doesn't seem possible with images despite spending days trying!
The only way around this problem that I can find is to use the image.x properties to determine which image has indeed been clicked by its click coordinates.
Is there a simpler way using the value parameter or is complication the only way? :-)