NewART Development Web development tutorials, SEO articles and PHP script resources

23Aug/090

Submit using an input image type: fix for IE

Posted by daniel-ionica

Well if you try login with an input image type you will have a small problem in IE:  it wont work.

HTML :

<input name="submit" src="path/to/image.gif" type="image" value="Submit"

PHP

// start processing on submit or submit_x
if (isset($_POST['submit']) || isset($_POST['submit_x'])) {
// run code here
}

This should fix the problem in IE. Just add isset($_POST['submit_x'] in the conditional

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.

Tag Cloud

My Websites

Categories

Archives