Keep data from inputs after failed validation in PHP
Here's the situation: registration.php with inputs (like firstname, lastname, password) and registrationErrors.php - having self-written error-checks and returning the type of error to the initial registration.php, where it is shown to the user. In case one of my self-written error…