php link to call another php page

Posted by user2086894 on Stack Overflow See other posts from Stack Overflow or by user2086894
Published on 2013-06-27T10:16:21Z Indexed on 2013/06/27 10:21 UTC
Read the original article Hit count: 218

Filed under:

i have a php page which contain this field: Delete i want when i press on the Delete to call the delcat.php and send a categoryid which is in a field in the same table. any one can help me to reach this please? here my complete table code:

<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 src='#'>Edit</a></td>"); 
      print ("<td align='center' class='tdh' width='50' align='center'><a href src='delcat.php'>Delete</a></td>");  
      print("</tr>");       
      } 

© Stack Overflow or respective owner

Related posts about php