I am using navigation buttons for Add, Update and Save command
I am using navigation buttons for Add, Update and Save command

I am new to php and html programming. I am using navigation buttons for Add, Update and Save commands. I set a value 'ADD','UPD' accordingly, in a variable when any one of the ADD & UPDATE button is pressed. When 'SAVE' button is pressed, i am evaluating the value of the variable and if it is 'ADD' I execute 'INSERT' SQL and 'UPDATE' SQL, if the variable holds the value 'UPD'. But, When clicking 'SAVE' button, the variable is found empty. I am using if (isset($_POST['add'])) statement to check which button is clicked. Can anyone help me in solving this issue?
Answers
How does this relate to DataTables?