Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Pass form value from submit image
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedPass form value from submit image

 Post Reply Post Reply
Author
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Direct Link To This Post Topic: Pass form value from submit image
    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
www.pedalcars.info

The most fun on four wheels

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.