note 31403 added to reserved.variables
| From: | waax*NOSPAM* at wanadoo dot fr | Date: | Sun, 20 Apr 2003 19:09:36 +0000 |
| Subject: | note 31403 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46853@lists.php.net to get a copy of this message | ||
Hello.
The following code :
if (isset($_POST['myfield'])) {
echo "Value = ".$_POST['myfield'];
}
works fine and displays
Value = This is a test
, whereas
if (isset($_POST['myfield'])) {
echo "Value = $_POST['myfield']";
}
doesn't work and shows :
Undefined index: 'myfield' in C:\mysite\post.php on line 2
Did I forget something ?
Thanks.
--
http://www.php.net/manual/en/reserved.variables.php
http://master.php.net/manage/user-notes.php?action=edit+31403
http://master.php.net/manage/user-notes.php?action=delete+31403
http://master.php.net/manage/user-notes.php?action=reject+31403