1
In the creation of an HTML form with insertion in the database, the action
from the form to the page itself or to another PHP script. I’m in doubt about which would be the best option.
I always use a second page, and do the validation on the second page as well, if the password is wrong (for example, if it is a login form), I display a warning and redirect to the previous page.
Would it be advantageous for me to do otherwise? What are the differences between the two options?