Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6793817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:08:46+00:00 2026-05-26T18:08:46+00:00

I am looking to develop a web-app that displays an image to the user

  • 0

I am looking to develop a web-app that displays an image to the user and allows them to click on certain parts of the image, when they do it will do a http post to some script. The post will basically send where the user clicks on the image.

More Info
For example: there would be a birds eye view image of a building. The building is surrounded by benches, the user can click on any bench and when they do it will post which bench they clicked on.

Could somebody show me how they might achieve this using the latest web layer technologies, what libs I might use, some pseudo-code perhaps. I DO NOT want to use flash.

Thanks in advance.

p.s: I tried Todds solutions (see below) which looks like the way forward for me, however I can never get the result of myImage.x to displayecho out of the POST variable

html/form

<form action="test1.php" method="post">
   <input type="image" src="aws.gif" name="myImage" />
</form>

php script

<?php 
print("The value is: ");
echo $_POST["myImage.x"];
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:08:46+00:00Added an answer on May 26, 2026 at 6:08 pm

    Actually, just an <input type="image"> tag will do what you’re asking. When a user clicks on an image input tag, it will send the coordinates back in with the form data in the format of elementName.x and elementName.y (elementName being the name attribute of the image). For example:

    <form action="someUrl" method="post">
       <input type="image" src="foo.jpg" name="myImage" />
    </form>
    

    When they click on the image, your form data will contain myImage.x and myImage.y corresponding to where they clicked the image. It’s as easy as that, but you’ll have to figure out what range of pixels correspond to what bench. You could alternatively use an image map, in which you define the areas that a user can click on and then using javascript have it send back the appropriate form data like this:

    <form name="myform" action="someUrl" method="post">
       <img src="foo.jpg" width="700" height="800" border="0" usemap="#Map">
       <map name="Map">
          <area shape="rect" coords="213,46,290,104" alt="test" onClick="myform.submit();" nohref>
       </map>
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are looking to develop an application that will get data from a web
I am looking to develop an app that will take login details from the
I'm looking to develop/obtain a simple GMaps app for my site that lets the
I am planning to develop a pretty awesome new web app that has a
I am currently working on a web app that will replace old systems in
I need to develop a simple webapp that allows the user to highlight a
I am currently planning to develop a web-app which will allow a 3rd party
I'm trying to develop a web app for a university who's looking to keep
We develop custom survey web sites and I am looking for a way to
I'm looking to develop an offline version of an application that still needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.