Re: question about $_POST ['something'] array
| From: | Brady Mitchell | Date: | Tue, 15 Jan 2008 07:49:06 +0000 |
| Subject: | Re: question about $_POST ['something'] array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267278@lists.php.net to get a copy of this message | ||
On Jan 14, 2008, at 1127PM, Lukáš Moravec wrote:
I have one question about $_POST ['something'] array... I am trying to use a form and php in a same file and when I am using the form for the first time, Any $_POST index which I use in the form is not defined (which is logical)...how can I remove any warning about undefined index of $_POST array...Check if it is set before using it: <?php if(isset($_POST['anything']) { $anything = $_POST['anything']; } ?> Be sure to validate and filter all input before using it! http://devzone.zend.com/article/1793-PHP-Security-Tip-8 http://www.sitepoint.com/article/php-security-blunders http://phpsecurity.org/ Brady