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!
I have a form that you use to add rows to my database, sometimes I have to add multiple rows, so I made more input fields so I can add more than one row without having to go back to the page. But I dont always want to use these. So is there a way I can check(before adding the row) to see if the field has a value? Someone give example?
My way is not foolproof but has worked quite well so far. I create an md5 hidden input for each db row based on the data I sent to the page. When they post it back I re-calc the md5. If it is different then they must have 'touched' that row. This method also allows me to avoid updating rows that have not changed.