Click to See Complete Forum and Search --> : ASP & Image button problem..


dirt29
10-05-2006, 04:22 PM
Ok, this is a weird one, but does any one know of an issue that would prevent the use of an "image" type button as opposed to a standard submit button?

In FF, of course, no issues. But in IE, the it's as if when the page posts it just ignores the the code.

Here is what I have code wise...I have 2 simple buttons, a back button & a submit(image) button.

<input name="Back" type="image" onclick="javascript:history.go(-1);" src="images/back.jpg"/>&nbsp;&nbsp;
<INPUT name="Submit" TYPE="image" class="button" value="Continue" id="Submit" src="images/continue.jpg"/>


And on the page it posts to, I simply have a check, as such:

if request.form("Submit") = "Continue" then
.
.
.
end if


I've tried changing the name & value fields, but IE does not seem to care.

I.m.I
10-05-2006, 04:44 PM
try this...
<INPUT name="Submit" TYPE="image" class="button" value="Continue" id="Submit" src="images/continue.jpg" onclick="submit()"/>

dirt29
10-06-2006, 10:29 AM
Many thanks, that did the trick. :)