Sorry, I know I'm being immensely thick, but what would be the correct command to display the SESSION variable statement?
I enter this directly after the insertion of data into the database via the form (I assume I only need to use the "session_start()" function here and not again after redirecting to the next page?):
$_SESSION['message'] = 'Data added successfully';
Then this after it has been redirected to the last part of the index:
$pagetitle = 'Results';
include 'results.html.php'; //RETURNS TO RESULTS PAGE
And this is how I am attempting to display it on the results page:
<?php echo ($_SESSION['message']); ?>
But am getting this error message (referring to where I am trying to display it):
Notice: Undefined variable: _SESSION
I've tried a good few things now and just can't seem to get it to work. I realise I am echoing it twice (in the index and on the actual results page) and that I will therefore likely need to change the "echo" statement set just before the session is unset, but I'm not sure what I'd need to change it to.