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

Reply via email to