Jump to content

Image map click notate.. help


lownoma925

Recommended Posts

Okay, I don't quite know how to word this, but basically I'm trying to make a back end for an automotive body shop and before they take a car in, they want to be able to do a walk-around to find any dings or scratches or anything that won't be covered on insurance. Now, what I want to do is: have a overhead view of a car and the user will be able to click where the damage is on the car and a pop-up box will appear, then a field for a description and another for a photo upload. Then the data inserted into a MySQL database. How hard would that be to complete?

Thanks,
Tom.

BTW, my first time posting here... I've heard good things about this place.
Link to comment
https://forums.phpfreaks.com/topic/6067-image-map-click-notate-help/
Share on other sites

depends if you are going to have stand alone pictures not photoes for like car.. van.. etc.. then i spose you could use PHP to auto make hotspots on the image and then on click it opens up a new window with the ID of the car and the hotspot number and then insert all the data into the database but it will be a tricky job to get it all working as i havn't heard of anyone really doing anything like this.. It may be a bit of a brain twister and if you havn't done PHP before i would advise going through a few of the basic tutorials for mysql/php before attempting the project :)


Regards
Liam
You could use a form image to display a standard image of a car overhead profile.

<INPUT type='image' src='car_ohead.gif' name='imagename'>

When the user clicks on the image it behaves like a button except the x,y coordinates of the click within the image are posted. You can get hold of these values by

[code]$x_pos = $_POST['imagename_x'];
$y_pos = $_POST['imagename_y'];[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.