Print Page | Close Window

Pass form value from submit image

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9223
Printed Date: 28 March 2026 at 1:18am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Pass form value from submit image
Posted By: pedalcars
Subject: Pass form value from submit image
Date Posted: 25 January 2004 at 8:24am
If you use a plain grey submit button (or buttons), you can pass a value reflecting which button has been clicked:

<input type="submit" name="test" value="Button one">
<input type="submit" name="test" value="Button two">

On the page the form takes you to;

Request.Form("test") will give you "Button one" or "Button two", dependant on which button you clicked.

However, if you use images not buttons:

<input type="image" name="test" value="one" src="image1.gif">
<input type="image" name="test" value="two" src="image2.gif">

These work as submit buttons, but annoyingly do not pass their assigned values.

Is there a way around this, as I really need to pass said value and really, really don't need to use a normal form button!

Hope this makes sense.

Ta


-------------
http://www.pedalcars.info/ - www.pedalcars.info

The most fun on four wheels




Replies:
Posted By: Gullanian
Date Posted: 25 January 2004 at 8:59am
Image buttons have lots of problems with them.  You would be better off using the normal buttons but dress them up with CSS.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net