2维数组 input 处理
- font size decrease font size increase font size
- Print Email
输出
$rs9 = mysql_fetch_array($sql9);
if($rs9!=null)
{
$i=1;
do{
?>
<tr>
<td id="mytd"></td>
<td id="mytd"><?php echo $ini_array['menu9_examen_Resultats_Examens'].":" ;?><input type="text" name="area[][1]"><input type="hidden" name="area[][2]" value=""></td>
</tr>
<?php $i++; }
while($rs9 = mysql_fetch_array($sql9));
} ?>
处理
if($_GET['action']=="submit"){
$notes = $_POST['area'];
}
foreach( $notes as $key=> $value)
{
$resualt=mysql_query("
REPLACE INTO `ilci`.`tbl_choix_examen_notes` (
`notes_stu_id` ,
`notes_empl_id` ,
`notes_note`
)
VALUES (
'$value[2]', '$empl_id', '$value[1]'
);
");
if($resualt){
echo "<tr><td id=\"mytd\">".$ini_array['menu9_examen_mysql_success']."</td></tr>" ; }
else{
echo "<tr><td id=\"mytd\">".$ini_array['menu9_examen_mysql_fail']."</td></tr>" ; }
}
?>
</table>
<?php
}
else {
Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
back to top