Update example3.php

Separated HTML and PHP and fixed XSS vulnerability