Depending on your user base you could consider using the button tag: <button type="submit" name="rm" value="mode1"><img src="yourfirstimage.jpg" /></button> <button type="submit" name="rm" value="mode2"><img src="yoursecondimage.jpg" /></button>
However i seem to recall that the button tag does not render in Netscape 4 -----Original Message----- From: Jerry Hamlet [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 17, 2002 11:00 PM To: Cees Hek; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [cgiapp] Image Submit Buttons Cees, No, unfortunately you can't. When an image submit button is used the 'value' attribute is not passed with the form parameters. What you get out of the image button is a 'rm.x=29' and 'rm.y=47', the numbers being the pixels where the user clicked from left and top of the image. Try it with a simple form set with a 'GET' method, and an action pointing at itself. You'll see the form parameters in the URL, but you won't see an 'rm=mode1or2' parameter. Hence the reason for the question. Of course this is tested with a Mac IE browser, I haven't tested others to determine if they deliver the value attribute of the image field. But in documentation of the image submit field, I think it's the standard to not send the value. -jerry On 3/17/02 4:00 PM, "Cees Hek" <[EMAIL PROTECTED]> wrote: > > Can you not just use the following? > > <input type="image" name="rm" value="mode1" src="/images/mode1.gif"> > <input type="image" name="rm" value="mode2" src="/images/mode2.gif"> > > I'm pretty sure that I've done that before with submit buttons, so it > should work equally well with image buttons. > > Cees > > +---------------------------+ | Jerry Hamlet | | Web Designer/Programmer | | www.hamletzone.com | | [EMAIL PROTECTED] | +---------------------------+ --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
