ISAPI:what's different between <input type=submit value=submit> and <input type=image src=images/01.gif> to submit a Form?
-
A very simple ISAPI Extension Program used to data submited by a Form. I tried with two submit style.when i use , everything is ok. but when i use , there is error saying "Can't find the page". Why? Desperatly need help! Thank you in advance for your time! :confused:
-
A very simple ISAPI Extension Program used to data submited by a Form. I tried with two submit style.when i use , everything is ok. but when i use , there is error saying "Can't find the page". Why? Desperatly need help! Thank you in advance for your time! :confused:
from ISAPI's point of view there is no difference. But think of what happens from a CGI point of view, and i think this will answer your question: picture this simple html form:
when that form is submitted the Post data will be this: PhoneNumber=4535435&submit=Send Now picture this form:
when this form is submitted, the post data will be this: PhoneNumber=4535435&submit.x=45&submit.y=122 When you use an input type=image, their are two more form values entered, name.x and name.y which are the coordinates in which the image was submitted. Therefore, my guess it that your page is doing wierd stuff in decoding this input.
-
from ISAPI's point of view there is no difference. But think of what happens from a CGI point of view, and i think this will answer your question: picture this simple html form:
when that form is submitted the Post data will be this: PhoneNumber=4535435&submit=Send Now picture this form:
when this form is submitted, the post data will be this: PhoneNumber=4535435&submit.x=45&submit.y=122 When you use an input type=image, their are two more form values entered, name.x and name.y which are the coordinates in which the image was submitted. Therefore, my guess it that your page is doing wierd stuff in decoding this input.
Thanks a lot. I got the right result immediatly. And i found myself not understand sth enough. Because of you, i will have a better weekend. Thank you once more! :-D