I have given my code below. The logic is:
- Display all Users details who have enrolled for access to my web page (default value for authorization is zero) on clicking 'NEW USERS'
- For those records where check boxes checked authorization will be updated to 1 (access given) on clicking 'AUTHORIZE' button
- For those records where check boxes checked will be deleted from the Users table (access denied) on clicking 'REJECT' button (this line is commented in code)
I want to have 2 submit type buttons in a form calling 2 different functions from my library file. I tried my level best but couldn't succeed. Given my code with insert function (insuser) only working; Can anyone help me in enabling REJECT button also in the same form.
Attachment contains the main code and the function from library.