<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Image as buttons (and IE issues)</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/</link>
	<description></description>
	<pubDate>Wed, 08 Oct 2008 10:54:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17017</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 08 Mar 2005 13:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17017</guid>
		<description>No way. Really? I get in just fine as "guest"

Well - I'll copy the "good" parts from the thread there:
......................................
POSTED QUESTION:
In mozilla 1.0 and firefox, On clicking &#60;input type="image" name="submit" value="1" src="whatever"&#62; the following fields are posted to the server

submit.x=(x coordinate clicked on image)
submit.y=(y coordinate clicked on image)
submit=1

Now I can't seem to successfully test for the existence of submit.x in php (presumably cos of the "."
......................................
RESPONSE:
 I've done this many times. All I needed was this:

&#60;INPUT name="submit" type=image src="images/subbutton.jpg" width="350" height="24" border="0"&#62;

if ($_POST['submit_x'])
{
...............

}

So add "_x" to whatever the name of the image button. In your case, it's also "submit_x
......................................
RESPONSE 2:
When you submit your form with a graphic button, you will notice the .x and .y appended to the name of the button.

...snertal&#038;crew%5B%5D=gosny&#038;formbutton.x=37&#038;formbutton.y=14

But if you were to submit the page and look at the results, however, you'd see:

formbutton_x = 37
formbutton_y = 14

Notice that the period (.) has been converted to an underscore (_). This may seem a little odd, but it's necessary because variable names in PHP can't have periods in them, so $formbutton.x would be an illegal variable name. In fact, any periods in form names -- not just those for image buttons -- are converted to underscores.</description>
		<content:encoded><![CDATA[<p>No way. Really? I get in just fine as &#034;guest&#034;</p>
<p>Well - I&#039;ll copy the &#034;good&#034; parts from the thread there:<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
POSTED QUESTION:<br />
In mozilla 1.0 and firefox, On clicking &lt;input type=&#034;image&#034; name=&#034;submit&#034; value=&#034;1&#034; src=&#034;whatever&#034;&gt; the following fields are posted to the server</p>
<p>submit.x=(x coordinate clicked on image)<br />
submit.y=(y coordinate clicked on image)<br />
submit=1</p>
<p>Now I can&#039;t seem to successfully test for the existence of submit.x in php (presumably cos of the &#034;.&#034;<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
RESPONSE:<br />
 I&#039;ve done this many times. All I needed was this:</p>
<p>&lt;INPUT name=&#034;submit&#034; type=image src=&#034;images/subbutton.jpg&#034; width=&#034;350&#034; height=&#034;24&#034; border=&#034;0&#034;&gt;</p>
<p>if ($_POST['submit_x'])<br />
{<br />
&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>}</p>
<p>So add &#034;_x&#034; to whatever the name of the image button. In your case, it&#039;s also &#034;submit_x<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
RESPONSE 2:<br />
When you submit your form with a graphic button, you will notice the .x and .y appended to the name of the button.</p>
<p>&#8230;snertal&#038;crew%5B%5D=gosny&#038;formbutton.x=37&#038;formbutton.y=14</p>
<p>But if you were to submit the page and look at the results, however, you&#039;d see:</p>
<p>formbutton_x = 37<br />
formbutton_y = 14</p>
<p>Notice that the period (.) has been converted to an underscore (_). This may seem a little odd, but it&#039;s necessary because variable names in PHP can&#039;t have periods in them, so $formbutton.x would be an illegal variable name. In fact, any periods in form names &#8212; not just those for image buttons &#8212; are converted to underscores.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark J</title>
		<link>http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17016</link>
		<dc:creator>Mark J</dc:creator>
		<pubDate>Tue, 08 Mar 2005 12:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17016</guid>
		<description>Bah, that link requires registration.  So what is the _x and _y stuff?  Is that like the coordinates of where on the image you clicked or something?</description>
		<content:encoded><![CDATA[<p>Bah, that link requires registration.  So what is the _x and _y stuff?  Is that like the coordinates of where on the image you clicked or something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17014</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Tue, 08 Mar 2005 03:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17014</guid>
		<description>IE won't send the post variable without the "_x" (or without a "_y" - so it's small change, but without it - it won't work. (See the link I found - it explains it in more depth)</description>
		<content:encoded><![CDATA[<p>IE won&#039;t send the post variable without the &#034;_x&#034; (or without a &#034;_y&#034; - so it&#039;s small change, but without it - it won&#039;t work. (See the link I found - it explains it in more depth)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karan</title>
		<link>http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17013</link>
		<dc:creator>Karan</dc:creator>
		<pubDate>Tue, 08 Mar 2005 03:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2005/03/07/image-as-buttons-and-ie-issues/#comment-17013</guid>
		<description>that's not a lot of change, really... what's the reason that this small difference works?</description>
		<content:encoded><![CDATA[<p>that&#039;s not a lot of change, really&#8230; what&#039;s the reason that this small difference works?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.327 seconds -->
