|
while($r=mysql_fetch_array($result))
{
$fid =$r["id"];
$fname =$r["name"];
$finfo =$r["info"];
echo "<tr><td align=\"right\" width=5%><input type=\"checkbox\" name=\"selforum[]\" value=\"$fid\" /></td>
<td align=\"left\" width=20%><input type=\"text\" name=\"fname[]\" value=\"$fname\" size=\"20\" /></td>
<td align=\"left\" width=65%><input type=\"text\" name=\"finfo[]\" value=\"$finfo\" size=\"60\" /></td>< /tr>";
}
echo "<tr><th colspan=\"3\">
<a href=\"\"><input type=\"button\" value=\"新\" /></a>
<a href=\"updateForum.php\"><input type=\"button\" value=\"Update\" /></a>
<a href=\"delForum.php\"><input type=\"button\" value=\"delete\" onClick=\"check()\" /></a></th></tr>" ;
echo "</table>";
When clicking "update" "delete", how should this dynamically generated form be delivered????
When you click "New", a line is generated below <checkbox> <text> <text>, how to write this??? |
|