C
Colin Steadman
I have two buttons on my form and need to know which was
clicked. If I setup the buttons like this:
<input type="submit" value="submit" name="submit_to_array">
<input type="submit" value="submit" name="submit_to_db">
I can look in the Request.Form collection to see if
submit_to_array or submit_to_db appears to determine which
button was clicked. This works fine.
The problem is, I want to use an image instead of the
default button and I have changed the type from submit to
image, ie:
<input type="image" value="submit" name="submit_to_array"
src="images\add.gif">
<input type="submit" value="submit" name="submit_to_db"
src="images\submit.gif">
But when I do this I dont get either submit_to_array or
submit_to_db appearing in the Request.Form collection.
Where has this gone?
TIA,
Colin
clicked. If I setup the buttons like this:
<input type="submit" value="submit" name="submit_to_array">
<input type="submit" value="submit" name="submit_to_db">
I can look in the Request.Form collection to see if
submit_to_array or submit_to_db appears to determine which
button was clicked. This works fine.
The problem is, I want to use an image instead of the
default button and I have changed the type from submit to
image, ie:
<input type="image" value="submit" name="submit_to_array"
src="images\add.gif">
<input type="submit" value="submit" name="submit_to_db"
src="images\submit.gif">
But when I do this I dont get either submit_to_array or
submit_to_db appearing in the Request.Form collection.
Where has this gone?
TIA,
Colin