Multiple Image Submit Buttons.

From: Date: Mon, 25 Jun 2001 02:22:08 +0000
Subject: Multiple Image Submit Buttons.
Groups: php.general 
Request: Send a blank email to php-general+get-55075@lists.php.net to get a copy of this message
I have a navigation section that needs to go to up to 10 pages based on which 'button' a user clicks on. It also has to send the form contents to the next page, so it has to be a 'submit'. This works for non-image submit buttons, because the 'name' and 'Value' tags on the submit tag works for them, but the 'value' component isn't supported for <input type="image" ...> I figured I could write a short javascript that is called 'onClick' of the button, copies a 'button number' to a hidden field, then executes the 'document.forms[0].submit()' function. This works just fine for Netscape, but the 'document.forms[0].submit()' even by itself doesn't work for IE 5.00. Any one have any other ideas on how to do this? multiple images for submit buttons (where you know which you pressed). I need to process the data in a PHP application. Thanks, -Scott-

« previous php.general (#55075) next »