Get the value of a cell table when clicking on it
I'm new here and in the web programing world.
I'm trying to do a CRUD application in PHP.
What I'm trying to do is this:
I read a database table and show the records in a table grid. I want to click in one of the records and call another page that allows me to modify the information.
I used the onclick event to call a function and that's the one that will call the new page. I need to get the cell value (it's the ID number of the record to be modified) in order to pass this as parameter to the new form.
What I can't find how to do is to get the value of the cell. I tried the getElementById method, but is not doing what I need.
Everything is welcome!
Thanks in advance!