Hi all
I submit a form and after form is submitted, check for the record in database with the given id and if exist, alerts the user using javascript and only if user confirms .. save the information in database else just go to a different location.
But what is happening- is that it alerts the message but in the background it already saves the values in database. What I want is that only if user confirms the alert message, it should save the form.
Any help is appreciated.
Thanks
I submit a form and after form is submitted, check for the record in database with the given id and if exist, alerts the user using javascript and only if user confirms .. save the information in database else just go to a different location.
But what is happening- is that it alerts the message but in the background it already saves the values in database. What I want is that only if user confirms the alert message, it should save the form.
Any help is appreciated.
Thanks