Re: Server-side imagemaps?

From: Date: Wed, 17 Apr 2002 03:02:09 +0000
Subject: Re: Server-side imagemaps?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-93281@lists.php.net to get a copy of this message
"Leif K-Brooks" <eurleif@buyer-brokerage.com> wrote in message news:B8E1F93B.C27C%eurleif@buyer-brokerage.com... > on 4/16/02 3:26 PM, Uchendu Nwachukwu at newsreply@unndunn.com 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.

« previous php.general (#93281) next »