$_SESSION doesn't work???
Posted: Thu Jul 26, 2007 7:58 pm
I have been testing $_SESSION and nothing displays on the second page. I have a textarea on the first page plus a rich text editor on the same page. The rich text editor is tiny_mce. I really need the textarea text to be added to a database however I haven't got to that yet. Can someone please tell me why this is happening and how I can solve the problem? Thanks in advance.
First page code:
Second page code:
First page code:
Code: Select all
if (isset($_POST['savebtn'])) {
session_start();
$pageContent = $_POST['pageContent'];
$pageContent = $_SESSION['pageContent'];
header ('Location: test123.php');
Code: Select all
$pageContent = $_SESSION['pageContent'];
echo $pageContent;