Re: Server-side imagemaps?

From: Date: Tue, 16 Apr 2002 19:52:27 +0000
Subject: Re: Server-side imagemaps?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93248@lists.php.net to get a copy of this message
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. TIA. 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!

« previous php.general (#93248) next »