Hi, I have attempted to post variables from a simple page: edit-news.php to edit-news-x.php, then load them into a session for re-use -- I use output buffering. They do not pass. The code:
[edit-news] .... <?php session_start(); ob_start(); ?> $news = "A few paragraphs"; print "<input type='text' name='news'>"; print "<input type='submit' name='submit' value='Submit Changes'>"; .... ?> [edit-news-x] <?php session_start(); ob_start(); ?> ... $_SESSION['news'] = $_POST['news'] session_write_close(); ... ?> [submit-news] <?php session_start(); ob_start(); ?> ... print "{$_SESSION['news']}"; //outputs blank ... ?> Now, I have used similar code on the same development machine for a very functional postgresql db website with no problems. The only diff is the mysql db. PHP version: 4.3.0. This particular development website is exhibiting weird behaviour: sometimes the code works, no probs, reload, and previously functional code falls apart. Any clues what I might be overlooking here -- why these variables do not pass? I'm stumped. (Could it be that both mysql/psql servers are competing against each other?) Help? Tia, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php