ecometer

Remove all warnings and notices

(Development)
#51

Warnings and notices slow down server applications such as PHP because they must retrace the origin of the errors and write messages explaining the problems in the various system logs.

Avoid:

<html>
<body>
<form method="post" accept-charset="utf-8">
<input type="text" name="first_name" value="<?php print $_POST['first_name'] ?>" placeholder="">
<input type="text" name="last_name" value="<?php print $_POST['last_name'] ?>" placeholder="">
</form>
</body>
</html>

$_POST[‘first_name’] and $_POST[‘last_name’] will generate notices because they are not necessarily defined.

This best practice should only be applied if it is coherent with your project's specifications.
Under CC-By-NX-SA license