( 1) Include the error message as part of the URL. header( " Location: contact. urlencode( " You must specify a value for name. " ) ) ; You can then, in contact. php add a echo $ _ GET[ " error" ] ; in the. Here is a simple example to help you. You need to use $ _ SESSION variables.