This will not throw an undefined constant notice:
PHP Code:
// Sample #1:
// Notice: Use of undefined constant date - assumed 'date' in C:\xampp\htdocs\bom3\scams\rthk.php on line 49
$date = ($_POST['date']);
'date' has been properly identified as a string. Look elsewhere for this error for which you want to find the (undefined) constant date in use.
PHP Code:
// Sample #2:
//Notice: Undefined index: flg in C:\xampp\htdocs\bom3\scams\tool.php on line 23
//Notice: Undefined index: flg in C:\xampp\htdocs\bom3\scams\tool.php on line 24
if($_POST['flg'] == 'ugg' ) {$bbb = 'selected';} ELSE {$bbb = '';}
if($_POST['flg'] == 'uggi' ) {$bbbi = 'selected';} ELSE {$bbbi = '';}
This one simply has no offset under the name 'flg'. Check it with isset before attempting to read it.
Given the names in your filepaths here and the comparison criteria there, I'll sure raise question to future help requests.