PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
this works fine but when i go back in to click the button i dont know how to tell php what button i pushed. it would be easy to do an if statement but these could be buttons from 1 - 1000 and i dont want to write that many if statements
Rather than naming your button $col_value, name it button[$col_value] (in double-quotes so $col_value will be evaluated). When the form is POSTed, $_POST will contain an element called 'button'. That element will itself be an array. The key of that sub-array (there will only be one as only 1 button was clicked) will be the $col_value of the button that was clicked.