Hi, I am new to php. I just finished tutorial class on PHP and mysql.
Here is my question:
I need to create a data entry form with several buttons (search, new, clear, edit and save buttons). Can those buttons all be submit type buttons? I put all the HTML control in a form now. I want to write a code associate with each button and want to perform different thing when user clicks the different button. For example, when user clicks New button, I want to give the value to the New button=1. Then I can check this New button value later with save button value together, I can decide whether I should update the record in the database or insert a new record to the database . What should I do? Is there any coding example similar to this task?
Thank you very much for your help!
hongmei