Jump to content


two images, one form, massive headache!


  • Please log in to reply
2 replies to this topic

#1 Guest_huey4657_*

Guest_huey4657_*
  • Guests

Posted 30 August 2006 - 02:01 AM

Hi all,
I have a problem with my form if anyone can help?

<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'>

When the user selects the check boxes image button it submits the form instead of checking the boxes, can anyone help?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 30 August 2006 - 02:06 AM

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.
Legend has it that reading the manual never killed anyone.
My site

#3 Guest_huey4657_*

Guest_huey4657_*
  • Guests

Posted 30 August 2006 - 02:21 AM

Thks AndyB its not the first time you have helped me, your a genius.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users