isset post with form - solved
Moderator: General Moderators
isset post with form - solved
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"?
Last edited by mickd on Thu Aug 04, 2005 2:04 am, edited 1 time in total.
- Skittlewidth
- Forum Contributor
- Posts: 389
- Joined: Wed Nov 06, 2002 9:18 am
- Location: Kent, UK
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.
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
In PHP the ".x" and ".y" converts to an underscore.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.
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