using PHP, is it possible to get values from specific cells in HTML tables?

I have an HTML table which contains a summary of leave requests from employees. The table contains 5 columns: Request ID, Date Requested, Employee Name, Leave Type, and a "View Entry" button after each row. When "View Entry" is clicked it should display the complete request. This comprehensive report NEEDS Request ID as the primary key to be able to display all the data needed in a popup window. so is it possible to retrieve request ID from a specified cell (in this case, the first column for request ID). or is there some ingenious array method to be able to extract request ID? i have had troubles with this for the past days. im turning to you guys for help. thanks in advance! could you elaborate on your answer please? for example, there are around 10 request ID's at a time. how do i make them into hidden values? hi Motasim J. could you elaborate further? that is exactly what i want to do. but i don't know how to do it by PHP code?

Public Comments

  1. Why on earth aren't you using the capabilities of a form? Use hidden values and pick those up in your script <form action="xyz.pht" method="post"> <input type=hidden name=requestid value="1237"> <input type=submit value="Go for it"> </form> <?php $requestid = $_POST['requestid']; ?> Unless you are generating the HTML in the script, I can't see anyway to interrogate an HTML page unless you are using embedded Javascript, then just use the document object.
  2. For this, you have to send the "requestID" parameter through variable. You have to add this variable with the link to the page which is requested on click of "view entry" link.
Powered by Yahoo! Answers