I\'m setting a PHP session variable with a success message for a HTML form that I\'m submitting. If there are no form errors, I redirect to the same page (using header()) and di
Before displaying the message you could do a check that the message is not empty. If it isn't empty then display the message and immediately afterwards explicitly empty the session variable so that next time the preceding check won't display the message.