note 22870 added to faq.html
| From: | brett at kinetix dot co dot nz | Date: | Wed, 03 Jul 2002 00:19:28 +0000 |
| Subject: | note 22870 added to faq.html | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32524@lists.php.net to get a copy of this message | ||
I'm using an NT Server, IIS and mySQL.
When processing posted variables, I kept getting the message on my browser;
Warning: Use of undefined constant name - assumed 'name' in <script.php>
The warning messages was created by using the code; $name1 = $_POST[name];
To stop this warning message, I used the code; $name1 = $_POST['name'];
--
http://www.php.net/manual/en/faq.html.php
http://master.php.net/manage/user-notes.php?action=edit+22870
http://master.php.net/manage/user-notes.php?action=delete+22870
http://master.php.net/manage/user-notes.php?action=reject+22870