Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Problem with PHP form Re: Problem with PHP form

#48380
ChrisBull
Member

Also – If you choose to redirect the use to another page make sure it’s to a page that confirms the message has been sent, if they just get redirected to your home page they will be left wondering what has happened.

There are yet better ways to structure this still – For instance you could have the main file with the php code in, and then two seperate files, one that contains the code for the form and one that contains code for a message sent page, and then depending on whether the form has been sent on not you can use require_once(‘nameofpage.php’) to either display form or message sent page.