Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id B05A7476217 for ; Fri, 3 May 2002 14:05:35 -0400 (EDT) Received: from leo.pcisys.net (leo.pcisys.net [207.76.102.240]) by postgresql.org (Postfix) with ESMTP id 64887475BD5 for ; Fri, 3 May 2002 13:53:51 -0400 (EDT) Received: from [208.202.106.237] (moe1.meg106-237.cos.pcisys.net [208.202.106.237]) by leo.pcisys.net (8.12.1/8.12.1) via ESMTP id g43Hroxi000905 for ; Fri, 3 May 2002 11:53:51 -0600 (MDT) env-from (hierophant@pcisys.net) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.4 Date: Fri, 03 May 2002 11:53:50 -0600 Subject: Re: Getting Image coordinates when mouse is clicked on the From: Keary Suska To: Postgres-PHP Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Archive-Number: 200205/31 X-Sequence-Number: 1163 on 5/3/02 7:26 AM, arun@library.iisc.ernet.in purportedly said: > Hello, > Is there any way to get the coordinates value, when an image is clicked. > Say I have created an image link using "mapedit".Instead of linking to > any URL, I want to link to a php file, which returns a value. This value > should be stored in a file against the corresponding coordinate of the > image. > I.e when a mouse is clicked on a image, its coordinates value should > be stored in a variable and the corresponding function should be called > which returns a variable. Both these values should be stored in a > file. > > Regards > Arun If I understand you correctly, you simply want your script to know the exact coordinates of the click. You could use JavaScript, I am pretty sure, or a less elegant solution is use an INPUT field type IMAGE. If this type of form field s give a name, the clicked coordinates are sent as fields "NAME.x" and "NAME.y" (where NAME is the name of the field). Keary Suska Esoteritech, Inc. "Leveraging Open Source for a better Internet"