[Javascript] Passing a value with an image submit button
Nancy Burton-Vulovic
nancybv at idirect.ca
Mon Oct 7 09:59:50 CDT 2002
use the Name field, rather than the value field.
<input type="submit" value="Please Click Here" name="valueToBePassed">
<input type="image" src="images/submit.jpg" value="Submit" alt="Submit" name="valueToBePassed">
What you will get, because it's an image, is valueToBePassed.x=number and valueToBePassed.y=number, but you can parse for the existence of valueToBePassed.
N
----- Original Message -----
From: Karen Wilfong
To: javascript at LaTech.edu
Sent: Monday, October 07, 2002 9:59 AM
Subject: [Javascript] Passing a value with an image submit button
I need to submit a form with an image that also passes a value when the image is clicked. With a submit button, it would look like this:
<input type="submit" value="myvalue">
All of the scripts I've seen work fine if you don't need to pass a value with the submit image. I can't use another hidden field, the value must be passed with the image.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20021007/b09bdaae/attachment.htm>
More information about the Javascript
mailing list