I have a php script that sends the contents of a form via email.
I have some error checking in the script to make sure that the required fields are filled out. Right now, if there's an error, it just displays an error, with what's missing on a simple html page.
I want to be able to have this error appear within a page that looks like the rest of my website.
My question is, how can I pass the error message so that it is displayed on a pre-constructed html page? I don't want to have to create a new page for each error.
Does that make sense?
Thanks.