Remove all warnings and notices


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.


<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="">

$_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