<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php include("dbconnect.php"); $sql=mysql_query("select * from my_tbl"); while($res=mysql_fetch_array($sql)) { ?> <input type="textbox" name="checkbox[]" value="<?php echo $res['id']?>" /> <?php foreach ($_POST[$res['id']] as $val) { echo "$val,"; } { $sql=mysql_query("insert into temp(temp_id,temp_name)values(".$ival.")"); } if($sql) { echo "inserted"; } else { echo "try again"; } } ?> <form name="frm" action="shiana.php" method="post"/> <input type="submit" name="submit" value="submit" /> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)