Hello, the problem is as follows: after filling in the form with fields and submissions, a search is made in the database. If the corresponding record is not found, a dialog should appear, asking for confirmation to add the corresponding record to the database. If the answer is "yes" - add, if "no" - stop the execution of the script. Is it possible to implement similar using php tools?

    1 answer 1

    Yes, it is possible, the algorithm is as follows: we receive data, check if the record is not found, give the form with the question and with the hidden fields filled in, duplicating the original request. On the button "yes" we hang up, on the button "no" - forwarding where necessary.