Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. C / C++ / MFC
  3. ISAPI:what's different between <input type=submit value=submit> and <input type=image src=images/01.gif> to submit a Form?

ISAPI:what's different between <input type=submit value=submit> and <input type=image src=images/01.gif> to submit a Form?

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Junsong He
    wrote on last edited by
    #1

    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:

    L 1 Reply Last reply
    0
    • J Junsong He

      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:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.

      J 1 Reply Last reply
      0
      • L Lost User

        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.

        J Offline
        J Offline
        Junsong He
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups