Update example1.php

Separated the HTML from the PHP to make it more readable and fixed two XSS vulnerabilities as can be seen here: http://stackoverflow.com/q/6080022