HTML_form_and_PHP_code_in_the_same_PHP_file

In the example below we have put the HTML form and PHP code in the same PHP file.
We have also added some extra lines for security.

Name: