Hi guys I am trying to pass my <td>
ID value to another page using POST form action
I have already did by using get method through <a>
tag. I would like to pass through form hidden. Here is my <td>
and <a>
tag
<td>
<center>
<a class="btn btn-success btn-sm" href="editcompany.php?id=<?php echo $row->cid; ?>">
<i class="fa fa-edit"></i>
</a>
</center>
</td>
Can any one explain me how to do that.
Thanks in advance.
Simple, use this in your form:
<input type="hidden" name="id" value="<?php echo $row->cid; ?>">