Jump to content

Archived

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

lownoma925

Image map click notate.. help

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
Ahh i didnt know you could do that! :) will have to have a play with that.. so _x and _y after images name as in form name and it will know to get the x and y co-ordinates?

Ahh i didnt know you could do that! :) will have to have a play with that..

Share this post


Link to post
Share on other sites

×

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.