这是TableA的,当我上的按钮进行“点击这里”点击节省时间,每次特定表被使用此代码
<tr>
<th style="height: 25px">NAME</th>
<th style="height: 25px">EMAIL</th>
<th style="height: 25px">CELL NO</th>
<th style="height: 25px">CITY</th>
<th style="height: 25px; width:120px">DATE APPLIED</th>
<th style="height: 25px">POST A MESSAGE TO CANDIDATE</th>
<th style="height: 25px">DETAILED CV</th>
<th>Hide Candidate</th>
<th>MARK AS IMPORTANT</th>
</tr>
<!-- /headings -->
<?php
if(isset($_GET['id'])) {
echo "<script>window.location = \"#showcand\";</script>";
if($result) {
if (mysql_num_rows($result) == 0) {
echo "<tr>";
echo "<td colspan=\"4\" ><p align=\"center\" class=\"message\"><blink><span style=\"color:red;\" > NO CANDIDATE APPLIED</span></blink></p></td>";
echo "</tr>";
}
while($data_set1 = mysql_fetch_array($result)) {
echo "<tr>";
echo "<td>{$data_set1['ename']}</td>";
echo "<td>{$data_set1['eemail']}</td>";
echo "<td>{$data_set1['ecell']}</td>";
echo "<td>{$data_set1['ecity']}</td>";
echo "<td>{$data_set1['date_of_jobapply']}</td>";
echo "<td><a href=\"reply.php?tid={$_SESSION['vid']}&id=1&name={$data_set1['ename']}&email={$data_set1['eemail']} \"><input class=\"button\" name=\"submit\" type=\"submit\" value=\"POST\" /></a></td>";
echo "<td><a href=\"detailcv.php?id={$data_set1['eid']}\" target=\"_blank\"><input style=\" cursor:hand;width:40px\" class=\"button\" name=\"cv\" type=\"button\" value=\"C V\" /></a></td>";
echo "<td><input type=\"checkbox\" name=\"hide_cand\" id=\"hide_cand\"onclick=\"return hideRow(this)\"/></td>";
echo "<td><input type=\"checkbox\" name=\"imp_cand\" id=\"hide_cand\"/></td>";
echo "</tr>";
}
} ?>
装在最后一列我想标记特定的行作为imp而不是imp使用复选框,并且每次我加载这个表格时,我都应该看到imp标记的行,因为它是如何做到的。
您是否尝试过的东西?看看AJAX。或者您可以使用单击复选框时将提交的表单。不只是写入检查/不检查到数据库。 –