Page 1 of 1

isset post with form - solved

Posted: Wed Aug 03, 2005 9:01 am
by mickd
i dont know why but is it just me or does isset($_POST['1_1']) does not work if the form used input type="image" name="1_1"?

Posted: Wed Aug 03, 2005 9:28 am
by Skittlewidth
Had a quick look into this and apparantly if you check for $_POST['1_1_x'] and $_POST['1_1_y'] you should get something.
When the graphical submit button is clicked, the coordinates of the click are sent with the form submission as name.x=x-value and name.y=y-value where name is the value of the NAME attribute, x-value is the click's pixels from the left of the image, and y-value is the click's pixels from the top of the image.
In PHP the ".x" and ".y" converts to an underscore.
I haven't got it to work myself yet but to save me typing here is a post that explains things for you :)


http://www.webmasterworld.com/forum21/9694.htm

Posted: Thu Aug 04, 2005 2:03 am
by mickd
thanks, got it to work now. dont know why they made the input img like that for :?