我有一个包含此字段的 php 页面:
<a href src='delcat.php'>Delete</a>
我希望当我按下 Delete 键调用 delcat.php 并发送一个位于同一个表中的字段中的 categoryid。任何人都可以帮助我达到这个吗?这是我的完整表格代码:
<table border="0" align='center' class="styled-table">
<tr class="thh">
<th class="thh">Category Code</th>
<th class="thh">Category Name </th>
<th class="thh">Category IMage </th>
<th class="thh">Edit</th>
<th class="thh">Delete</th>
</tr>
<?php
for ($counter = 0; $row = mysql_fetch_row ($resultSet); $counter++) {
print ("<tr align='center' class='trh'>");
print ("<td align='center' class='tdh'>$row[0]</td>");
print ("<td align='center' class='tdh'>$row[1]</td>");
print ("<td align='center' class='tdh'><img src='$row[2]' width='50' height='50'></td>");
print ("<td align='center' class='tdh' width='50' align='center'><a href ='#'>Edit</a></td>");
print ("<td align='center' class='tdh' width='50' align='center'><a href ='delcat.php'>Delete</a></td>");
print("</tr>");
}