lownoma925 Posted March 29, 2006 Share Posted March 29, 2006 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 More sharing options...
shocker-z Posted March 29, 2006 Share Posted March 29, 2006 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 :)RegardsLiam Link to comment https://forums.phpfreaks.com/topic/6067-image-map-click-notate-help/#findComment-21874 Share on other sites More sharing options...
Barand Posted March 29, 2006 Share Posted March 29, 2006 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 https://forums.phpfreaks.com/topic/6067-image-map-click-notate-help/#findComment-22075 Share on other sites More sharing options...
shocker-z Posted March 30, 2006 Share Posted March 30, 2006 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 https://forums.phpfreaks.com/topic/6067-image-map-click-notate-help/#findComment-22238 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.