phpSensei Posted October 31, 2007 Share Posted October 31, 2007 How can i submit a form with an image as the button, and like name the button too.... I want to name the button, because i want to know if the form has been submitted in php... <?php //our image if(isset($_POST['image_button'])){ //do thingd } ?> Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 1, 2007 Share Posted November 1, 2007 <input type="image" src="..." ... /> you are correct tha there are issues with how each browser passes the data about the image button. print_r($_POST) will show you what has been posted and you can then determine which browser is passing what as the value of the image input - the x and y co-ordinate of the clicked portion of the image should be the result but I thin its IE that doesn't pass this... Quote Link to comment Share on other sites More sharing options...
phpSensei Posted November 1, 2007 Author Share Posted November 1, 2007 aha, thanks man... Quote Link to comment Share on other sites More sharing options...
AndyB Posted November 1, 2007 Share Posted November 1, 2007 but I think its IE that doesn't pass this... Nope, IE is the compliant browser this time and it's Firefox that does it wrong Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 2, 2007 Share Posted November 2, 2007 HOORAY FOR MOZ.ORG! Hey if you are gonna compete with someone who doesn't do compliant stuff you may as well have something your own arsenal to hit em with!!!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.