note 31403 rejected from reserved.variables by spic
| From: | spic@php.net | Date: | Sun, 20 Apr 2003 22:44:22 +0000 |
| Subject: | note 31403 rejected from reserved.variables by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46861@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.