Hi, I want to update one of my tables in a database, when the user checks the checkbox.
I am running update query for the same.When I echo that query, I came to know that it is not taking the checkbox name .. Can someone please help me out with this..
here's the code
echo "<table border=1 align=center>";
echo "<tr>";
while($row = mysql_fetch_array($sellexe);)
{
echo "<td colspan='3' align='right'><input type='checkbox' name='scow'>Sell"
}
echo "<td><input type='submit' name='submit' value='submit'></td>";
echo "</tr>";
echo "</table>";
$se = $_POST[scow];
//cho "$se";
if(isset($_POST['submit']))
{
$inssell = "UPDATE `farmlogin` SET `sellcow` = '$se' WHERE `cowid`='$id'";
//echo "$inssell";
$s = mysql_query($inssell);
}