PHP, Checkboxes, and Firefox... clicking checkboxes has random results

My code is below.

clicking one of the options below in firefox 3, will randomly select all checkboxes... may uncheck all... or may select just the one that was clicked.  Has anyone else seen anything like this.  It seems to only be with Firefox 3.

Safari 4 (Mac Leopard) seems to handle it as it should.
Explorer 8 (Vista) seems to handle it as it should.
Firefox 3.0.10 (Vista and Mac Leopard) has the problem.

Any thoughts?

<input name=business_unit[] type=checkbox value="BU1" />Business Unit 1<br />        
<input name=business_unit[] type=checkbox value="BU2" />Business Unit 2<br />
<input name=business_unit[] type=checkbox value="BU3" />Business Unit 3<br />

Open in new window

ipengAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
How are you visualizing the data in $_POST?
0
Ray PaseurCommented:
Here is my test case.  Worked fine on FF 3.0.10 on Windows XP.
<?php // RAY_temp_ff_checkboxes.php
error_reporting(E_ALL);
 
// IF ANYTIHING POSTED
if (!empty($_POST))
{
   var_dump($_POST);
}
?>
<form method="post">
<input name=business_unit[] type=checkbox value="BU1" />Business Unit 1<br />        
<input name=business_unit[] type=checkbox value="BU2" />Business Unit 2<br />
<input name=business_unit[] type=checkbox value="BU3" />Business Unit 3<br />
<input type="submit" />

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ray PaseurCommented:
Like so many things in software development, this is a data dependent problem and the key to resolving those is data visualization.  The post here at ID: 24459100 teaches how to visualize the data.  If the Asker used that, the issues would immediately become apparent.  

As someone who has some experience in computer science, I am HIGHLY skeptical that there was something wrong with Firefox, and it had somehow totally escaped the notice of anyone else who publishes online:
http://lmgtfy.com?q=firefox+checkbox+problems
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.