html confirm before submit form save to database code example
Example: confirm before submit form php
onclick="return confirm('Are you sure you want to submit this form?')"
onclick="return confirm('Are you sure you want to submit this form?')"