Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest huey4657

two images, one form, massive headache!

Recommended Posts

Guest huey4657
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest huey4657
Thks AndyB its not the first time you have helped me, your a genius.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.