i need some help, i have this website where it has a form, and after the from is submitted and all the checks have been done, i want it to automatically take the user back to the original page to where they were before without having them to click on a continue button or link, is that possible.

for example, my form is at form.php

once the form is submitted, it takes the user to submitted.php where i do all the error checks, once all the error checks are done and everything is ok, it adds the information into my database, then i prompt the user to click or enter the continue button. but i want it so that if there are no error, to just automaticaly send the user back to form.php instead of having them click to continue. can that be done?