Guest huey4657 Posted August 30, 2006 Share Posted August 30, 2006 Hi all,I have a problem with my form if anyone can help?[code]<form name = "stats" action = "statsoutput.php" target = "_blank" method = "POST">blah blah<input type = "image" id = "A" name = "checkem" src = "images/checkall.jpg" onClick = "this.src=check(this)" alt = "check boxes">blah blah<input type = 'image' name = 'sendform' src = 'images/calculate.jpg' alt = 'get stats'>[/code]When the user selects the check boxes image button it submits the form instead of checking the boxes, can anyone help? Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 30, 2006 Share Posted August 30, 2006 That's normal and expected behaviour for an input image type. Could you simply use the image without it being a form input type; the same onClick behaviour should result. Quote Link to comment Share on other sites More sharing options...
Guest huey4657 Posted August 30, 2006 Share Posted August 30, 2006 Thks AndyB its not the first time you have helped me, your a genius. 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.