multiple checkboxes issue for IE
Posted: Sun Aug 27, 2006 2:35 am
hello everyone, i'm new to php and was having a problem with enabling multiple checkboxes. My code works just fine on firefox but doesnt do a thing on IE. what could be the problem? thanks.
Code: Select all
<?php
/*Deactivate and Activate*/
if(isset($_POST['Activate']))
{
if(!empty($_POST['checkbox']))
{
foreach($_POST['checkbox'] as $tempID)
{
$sql = "UPDATE category set CatStatus = \"Active\" where CatID=\"$tempID\"";
$result = mysql_query($sql, $conn) or die(mysql_error());
}
}
}
elseif (isset($_POST['Deactivate']))
{
if(!empty($_POST['checkbox']))
{
foreach($_POST['checkbox'] as $tempID)
{
$sql = "UPDATE category set CatStatus = \"Inactive\" where CatID=\"$tempID\"";
$result = mysql_query($sql, $conn) or die(mysql_error());
}
}
}
?>