Hi there. Are you saving the page as a php page? Remember, you can only view a page if you are running a local server through something like xampp.
Looking at things on my pc, the following appears to be the problem:
print '<h1> Please Register To Continue </h1>';
print '<style type="text/css"
media="screen>
.error { color: red; }
</style>';
If you remove that, the form then shows up, otherwise only the -h1- content appears.