"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > on 4/16/02 3:26 PM, Uchendu Nwachukwu at [EMAIL PROTECTED] wrote: > >> Is there anyway I can use server-side imagemaps with PHP? I want to build an >> application that lets people click on a picture, and have the coordinates of >> the click on the picture be stored in a database. I've searched www.php.net >> and it makes no mention of it. > > If I understand correctly, you want to know how to have to have the > coordinates of a click sent to your script. Use html something like this to > do that: > <form method=get action=yourscript.php> > <input type=image src='/path/to/your/image.jpg'> > </form> > > That would generate a query string something like > "yourscript.php?x=138&y=327". From there, you can do whatever you want with > the values. Hope that helped!
<form action='url/path/scriptname.php'> <input type='image' name='myimage' src='url/path/image.jpg'> </form> will pass variables myimage.x and myimage.y BUT note that to distinguish the variables from class members, PHP processes that to $myimage_x and $myimage_y Hope this helps. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php