Apologies if this was asked before, I couldn't find an exact question.
I would like to redirect a visitor on submitting a form to a WP page and also display that form's confirmation message (before other page info). This WP page is also accessible by itself. However, I only want to display the form's confirmation message on that page if it was redirected to after submitting a form. Ideally, I don't want to use URL parameters.
Can I add some code to a page template or do it via hooks somehow?
Many thanks, Dasha