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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.