note 20473 added to language.variables.external
| From: | phresno at concept-factory dot com | Date: | Thu, 04 Apr 2002 17:16:00 +0000 |
| Subject: | note 20473 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28614@lists.php.net to get a copy of this message | ||
When retrieving data from a form textarea, neither POST nor GET seem to work with PHP to store the
data in the globals $_POST, $_GET, $HTTP_POST_VARS, or $HTTP_GET_VARS.
Instead I had the textarea name setup as a global itself by PHP and it seemed to work fine from
there.
Example:
-html portion-
<form action="some.php" method="POST">
<textarea name="sample"></textarea>
</form>
-PHP portion-
echo "sample:", $_POST['sample'];
// displays nothing
echo "sample: $sample";
// displays the text area data as a single string
--
http://www.php.net/manual/en/language.variables.external.php
http://master.php.net/manage/user-notes.php?action=edit+20473
http://master.php.net/manage/user-notes.php?action=delete+20473
http://master.php.net/manage/user-notes.php?action=reject+20473