RE: [PHP-DB] POST problem, extended
| From: | Bastien Koert | Date: | Fri, 03 Dec 2004 23:57:22 +0000 |
| Subject: | RE: [PHP-DB] POST problem, extended | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37577@lists.php.net to get a copy of this message | ||
<?php
session_start(); //session start needs to be on every page that uses sessions
if (isset($_POST['Body'])){ $_SESSION['mailtxt'] = $_POST['Body']; }
?>
From: "H. J. Wils" <double_u1@hotmail.com> To: php-db@lists.php.net Subject: [PHP-DB] POST problem, extended Date: Fri, 03 Dec 2004 23:09:18 +0100 simplified, my code is as follows: ---------------------------------------------------- document -------------------------------------- <?php $_SESSION['mailtxt'] = $_POST['Body']; ?> <form> <textarea name='body'><?php $_SESSION['mailtxt'] ?></textarea> <input type=submit> </form> recalling: in some way, is de session variable not filled with the POSTed value... ---------------------------------------------------- end document -------------------------------- _________________________________________________________________ MSN Search, for accurate results! http://search.msn.nl -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php