<a href="oaccept1.php?id=<?php echo $data['oaid'];?>" class="btn btn-sm btn-primary login-submit-cs"
onclick="return confirm('Are You Sure')">ACCEPT</a>
want to disable that button after accepting that and it should stay disabled after accepting that doc
2
Answers
I suggest you make it a button, otherwise a simple visit from a google bot will accept all
Alternative is to use a form submit event
Use server side, don’t depend on only javascript
In table add new field as
accepted
and make it false by default,on click of accept button event function, set this field as true
Then in your php have
hope this will help you