The function isset() will help clear PHP notices for an undefined index.
Place the undefined var or index in the parentheses.
Example:
Sources:
http://www.php.net/manual/en/function.isset.php
http://notesofgenius.com/how-fix-php-notice-undefined-index/
Place the undefined var or index in the parentheses.
Example:
PHP:
if( isset( $_POST['name'] ) {
echo $_POST['name'];
}
Sources:
http://www.php.net/manual/en/function.isset.php
http://notesofgenius.com/how-fix-php-notice-undefined-index/