My session variable not being saved from one page to the next.
I tried the script on this page -> http://www webassist com/forums/posts php id=5735, and it works fine.
but when I upload my two pages session id changes from page to page.
If helps any I also asked it to output the $_SESSION array and it is also showing my variable as blank on page 2, but on page 1 it clearly displays it.
I am initially setting the variable from a from as such $searchTerm = $_POST['find'];
I can't stick my session start at the very top of the page because I am sending header information so it is as far to the top as I can.Which I don't think should be causing the issue, being as it clearly displays it below in the html when I ask for it to be echoed.
Below my session start I placed this code $_SESSION['searchTerm'] = $searchTerm;
Once I hit the submit button some code above it runs (updating a database that resulted from the original identifying of the post variable). This also sends the user to a new page that is the confirm page that should hold the information they added to the text boxes. But the session variable isn't holding so it outputs what seems like the last entry in the database for that sql statement.
What have I done that would make this not work right? I have used session variables before and never had this problem.