I've started a session.
A form on the page posts data to mySQL db
Page refreshes back to self but displays a "Process Complete" message via heredoc syntax.
The contents of the heredoc is formatted as an HTML page including a META TAG refresh to a different page.
This new page (page 3) needs to be part of the session but seems not to be.
Here is some code;
The 3rd page is to be part of the session and is to use the session id as a var in a mySQL query
// page 2
$_SESSION['type_id'] = $type_id; // use if first page of session
// some query stuff and other stuff here
// the heredoc with META TAG directing to 3rd page of series
<META HTTP-EQUIV="Refresh" CONTENT="05; URL=http://www.domainname.com/page3.php">
<p>Process complete!</p />
So in the mySQL query, the WHERE category_type is to be the same value as the value of $type_id which is the session id.
// page 3
$type_id = $_SESSION['type_id'];
$result = mysql_query( "
ORDER BY category_order" );
How far off am I? Thanks.