The default behavior of a textarea in a page when the user clicks in a link inside the page and then clicks the "back" button is to reset it's content. How can i prevent this?
Right now i have a PHP page with a textarea. The PHP script generates a small content and puts into the textarea, but if the user clicks in a link and then clicks the back button, the text doesn't appear anymore in the textarea.
ps.: Without using session, please.
What i'm actually doing:
page.php
<textarea readonly="readonly"><?php echo $somevarhere ?></textarea>
<a href="nicelink.php">Hey</a>
So, when i open page.php and click "Hey", i go to nicelink.php. If i press the back button, however, the content of the textarea is gone. I have to press F5 for the PHP to generate the page once again, and therefore the textarea content. How to prevent the textarea from being reset?