multiple checkboxes code works for firefox but not IE. why?
Posted: Mon Aug 28, 2006 1:06 am
is there any additional code needed to make my code work for IE and not only firefox? sorry, i'm new to php so i wouldnt know if there is any. thanks. heres the code i used...
what could be the reason my code isnt working for IE but is doing just fine for firefox? help would be very much appreciated. thanks
Code: Select all
<?php
if(isset($_POST['CheckAll']))
{
if( $value == 1 )
{
echo "<input type=\"hidden\" name=\"previousValue\" value=\"$value\">"; //temporary variable for future use
if ( ( $status == "Active") or ( $status == "Inactive" ) )
{
$sql = "Select * from category where CatStatus = \"$status\" order by CatName"; //query searched variable from database
echo "<input type=\"hidden\" name=\"Status\" value=\"$status\">";
}
else
{
$sql = "Select * from category order by CatName";
echo "<input type=\"hidden\" name=\"Status\" value=\"$status\">";
}
$result = mysql_query($sql, $conn) or die (mysql_error());
while( $newArray = mysql_fetch_array($result))// post variables in a table for checking
{
$CategoryID = $newArray['CatID'];
$CategoryName = $newArray['CatName'];
$CategoryStatus = $newArray['CatStatus'];
echo "<tr class=\"RowMouseOver\">
<td class=\"TextTable\"><label>
<input type=\"checkbox\" name=\"checkbox[]\" value=\"$CategoryID\".
\"checked=\"checked\"/>
</label></td>
<td class=\"TextTableLeftAlign\">$CategoryName</td>
<td class=\"TextTableLeftAlign\">$CategoryStatus</td>
<td class=\"TextTableRightAlign\"><a
href=\"categoryedit.php?CategoryName=$CategoryName&CategoryID=$CategoryID\"
class=\"LinkStyle1\">Edit</a></td>
</tr>";
}
}
}
?>