Re: usmap won't do it, ismap won't do it. What can I do?

From: Date: Wed, 01 Sep 2004 19:06:34 +0000
Subject: Re: usmap won't do it, ismap won't do it. What can I do?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195487@lists.php.net to get a copy of this message
On Wed, 1 Sep 2004 13:28:24 -0400 "John Holmes" <holmes072000@charter.net> wrote:
From: "Btew" <btew@wtvynews4.com>
I need a php server side image map script. Or rather a script that will examine x,y coords and determine if they could fall within any of a number of area polygon or rect tags.
<input type="image" name="myimage" src="map.jpg"> Then you'll have $_REQUEST['myimage_x'] and $_REQUEST['myimage_y'] as the coordinates that the user clicked. ---John Holmes...
I tried using form input tags with client side image maps. Unfortunately that doesn't work. The browser only returns the x,y coords. I need a script that can take those coords and compare against standard polygon and rect <area> tags. The rect tags I could write a script to parse myself, but the polygon tags are giving me trouble. I can't use plain img tags with usmap attributes, because the user can't be able to see the final URL. So what I essentially need is a PHP client side image map script, because the final data will go to other PHP scripts.

« previous php.general (#195487) next »