I am designing a simple contact page on my website in php/html. The form has a reCaptcha spam, filter associated with it. My form posts to a separate PHP which checks to see if the Captcha was correct and then send an email of the message to me. However, if the user inputs the wrong Captcha or some other error occurs, a message is printed to the screen. How can I make the script return the contact page, put all the values the user inputted before submission back into the form, and tell the use that the Captcha they entered was incorrect or that they forgot to enter some value? Basically, I want something that looks better than a blank page that the user then has to leave and retype their entire message.