Dar all.....
I want to get Check box name in php
my code sample is here.....
if(isset($_POST['delete'])
{
in this place.... How can i get checkbox name????
can i get checkbox name which the user checked??
}
<html>
<form method=POST>
<?php
$query=mysql_qu ery("SELECT id FROM table");
while($result=m ysql_fetch_arra y($query))
{
echo "<input type=checkbox name={$result['id']} >
}
<input type=submit name=delete>
?>
</form>
</html>
I want to get Check box name in php
my code sample is here.....
if(isset($_POST['delete'])
{
in this place.... How can i get checkbox name????
can i get checkbox name which the user checked??
}
<html>
<form method=POST>
<?php
$query=mysql_qu ery("SELECT id FROM table");
while($result=m ysql_fetch_arra y($query))
{
echo "<input type=checkbox name={$result['id']} >
}
<input type=submit name=delete>
?>
</form>
</html>
Comment