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
Merge pull request #1 from FranciscoP/patch-1

Update example1.php