49 users online (1 members and 48 guests)  

Thread: image map form


  Results 1 to 4 of 4

Related

  1. Replies: 3
  2. Replies: 1
  3. Upload logo/image in form    Forum: CGI Perl Forum
    Replies: 0
  4. Replies: 4
  5. Replies: 14
  1. #1
    pegboy's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2001
    Location
    Knoxville, TN
    Posts
    76

    image map form

    once again i'm going to post a question that i'm embarrassed about.

    i want an image map form submit. the image i have has three buttons in it. the last one is a "submit" button, but can't figure out the tags. anyone...?
    robert koons

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Just need to clarify, if thats okay.

    When you say an imagemap, do you mean that you need the coordinates of the image transmitted along with the form, or do you have an imagemap, with three links, and you need one to submit a form?

    If its the latter, the code is relatively simple, heres a sample, tested -

    Code:
    <form method="post" action="index.html" name="test">
    <input type="hidden" name="tester">
    </form>
    <map name="testmap">
    <area shape="rect" coords="100,10,200,100" href="javascript:document.test.submit();">
    </map>
    <img src="quietdean.com/tfc.jpg" usemap="#testmap">
    Adapt it, try it. You may like it
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    danfossdave's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    2

    another dumb question

    Hi:

    I am trying to adapt this code to use and am having some issues. My programming skills are extremely limited. You indicate an action=index.html in the form tag. What does index.html look like? Is it the current page, if so where does the submitted data go and how do you use it. I am looking to have an image map transfer the name of a selected area into a separate page and document.write (or something similar) it on that secondary page (along with some other text)

    Dave


    Quote Originally Posted by QuietDean
    Just need to clarify, if thats okay.

    When you say an imagemap, do you mean that you need the coordinates of the image transmitted along with the form, or do you have an imagemap, with three links, and you need one to submit a form?

    If its the latter, the code is relatively simple, heres a sample, tested -

    Code:
    <form method="post" action="index.html" name="test">
    <input type="hidden" name="tester">
    </form>
    <map name="testmap">
    <area shape="rect" coords="100,10,200,100" href="javascript:document.test.submit();">
    </map>
    <img src="quietdean.com/tfc.jpg" usemap="#testmap">
    Adapt it, try it. You may like it

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    index.html is just an example file, it can be anything.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread