This is the second time I've answered this question today. The usual method is to make the form submit to itself (i.e. <form action="<?= $_SERVER['PHP_SELF'] ?>" ...>). Then on the page with the form, check to see if the form has been submitted. If it has, do your validation, and if anything is missing, display the form again with all the submitted information filled in (i.e. <input type="text" name="username" value="<?= $_REQUEST['username'] ?>">) and highlight the fields that the user missed. For the record, form validation is a pain in the arse. I recommend reading one of the dozens of good form validation tutorials that Google will find for you and/or don't reinvent the wheel and just download someone else's script.