I'm using JQuery Mobile 1.2.0 CSS and I have a PHP function that creates a form element:
- function showPlayer($name,$title)
- {
-
$id = substr($name,4); // strip out the group part of the name
-
$s = explode(",", $id);
-
$handicap = $s[sizeof($s)-1];
-
echo '<input type="checkbox" name="' . $name . '" id="' . $id . '" class="custom" data-mini="true" />';
-
echo '<label for="' . $id . '">' . $title . ' (' . $handicap . ')</label>';
-
}
I use it like this:
-
<form action="tables.php" data-transition="fade" method="get">
-
<fieldset data-role="controlgroup">
-
<legend>Group 1</legend>
-
<?php
-
showPlayer("grp1John,-8","John");
-
showPlayer("grp1Sam,-8","Sam");
-
showPlayer("grp1Joe,-7","Sam");
-
?>
-
</fieldset>
-
<input type="subit" value="Create Tournament">
-
</form>
It's been working fine for about 4 months but now on my Android 4.0 phone it seems to add in extra selected elements when I submit the form. For example I would select John and Joe, but the GET array would also contain Sam. This does not seem to happen on a PC browser (Chrome or IE).
I tried changing the GET to a POST but it produced the same results. I then changed "data-mini=true" to "data-mini=false" and it did seem to fix it for now but i'm not sure why.
Has anyone else come across this?
Thanks, Jason.