Hello forum!
First of all I want to thank you all for having this superb place.
I have learned alot here, but now I am stuck - and have to ask for help
in this post.
My problem is that I can not get a particular variable to be stored in session.
The variable comes from a html-form <textarea>.
I have several other variables in the same pages, and all of them stay in session.
For example with <input type="text">, it works fine.
Here are simplyfied codes to illustarte problem.
(The inputs from "r_epost" are restored in page3.php,
through $r_epost, but this does not work for "r_beskjed"/$r_beskjed.)
...........................................................................................................................
page1.htm
<html>
<form action="2.php" method="POST" name="Subscribe">
<br>
<br>
<input type="text" name="r_epost" size="22">
<br>
<textarea name="r_beskjed" cols="21" rows="9"> </textarea>
<input type="submit" value=" Send meldingen "></p>
</body>
</html>
...........................................................................................................................
_page2.php_
...........................................................................................................................
<?
session_start();
header("Cache-control: private");
$r_epost = $POST['r_epost'];
$SESSION['r_epost'] = $r_epost;
$r_beskjed = $POST['r_beskjed'];
$SESSION['r_beskjed'] = $r_beskjed;
$required_errorpage = "3.php";
header("Location: $required_errorpage");
exit();
?>
...........................................................................................................................
page3.php
<?php
session_start();
header("Cache-control: private");
$r_epost = $SESSION['r_epost'];
$r_beskjed = $SESSION['r_beskjed'];
echo <<<EOF
<html>
<body>
<input type="text" name="r_epost" size="22" value="$r_epost"><br><br>
<textarea name="r_beskjed" cols="21" rows="9" value="$r_beskjed"></textarea>
</body></html>
EOF;
?>
...........................................................................................................................
I would really appreciate any help so I can get some progress.
Best wishes from Espen and thank you! 😉