user4fun Posted August 27, 2007 Share Posted August 27, 2007 This works<input type="submit" name="page_mode" value="shop" tabindex="8">I need to replace the submit with an imageproblem, i need to give the image a value so when it gets posted to the user_choice.php the php file would know what the user clicked on.This does not work<input type="image" src="image/i_shop.jpg" name="page_mode" value="shop" tabindex="8">So waht i need is an onlick event that would open the user_choice.php and have the page_mode = "what i want it to be"is that right? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 27, 2007 Share Posted August 27, 2007 It should work, it might not submit the value though. I believe when you use an image for a submit button it sends the x,y coordinates that the user clicked on, so you can tell which region of the image they clicked on. Print out the $_POST array and see what's in there.print_r($_POST); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.