You don't understand. That is not the correct way to program. You must initialize the vars before using them. They can't be empty or php will give you the error notice error. You can use php.ini to stop those notices from occurring. It isn't a error persay. Php is just telling you that you have bad programming practices.
No need to change the ini file. he can stop notices and warnings to show up by setting the error reporting level to E_ERROR only. error_reporting(E_ERROR); http://php.net/manual/en/function.error-reporting.php But you are correct for the rest of the part, Not checking if the var is actually set before using it, is a bad practice.
The Webby: I know mate. Just if they have other scripts so they don't have to put it in every file. achraf52 read this: http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
Hi, that not the current error please check the latest post by me as the error is that I do not see anything instead of "You entered a wrong password" so please look at those lines around it to see what is the error .
Hi, that not the current error please check the latest post by me as the error is that I do not see anything instead of "You entered a wrong username" so please look at those lines around it to see what is the error .
How I could set a value after knowing it is NULL just for preventing a error of Undefined index to be shown .
really horrible code use <? include_once ('blah'); include_once ('blah2'); include_once ('blah3'); ?> instead of including them individually.
Hi, just stop guys I found a better way and easy way to login, and I solved the script error and now they works just fine .
look for this part... include('files/config.php"; PHP: change it to... include('files/config.php'); PHP: