1.	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2.		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3.	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4.	<head>
5.		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6.		<title>Registration</title>
7.		<style type="text/css" media="screen">
8.			.error { color: red; }
9.		</style>
10.	</head>
11.	<body>
12.	<h2>Registration Results</h2>
13.	<?php // Script 6.3 - handle_reg.php #2
14.	/* This script receives eight values from register.html:
15.	email, password, confirm, month, day, year, color, submit */
16.	
17.	// Address error management, if you want.
18.	
19.	// Flag variable to track success:
20.	$okay = TRUE;
21.	
22.	// Validate the email address:
23.	if (empty($_POST['email'])) {
24.		print '<p class="error">Please enter your email address.</p>';
25.		$okay = FALSE;
26.	}
27.	
28.	// Validate the password:
29.	if (empty($_POST['password'])) {
30.		print '<p class="error">Please enter your password.</p>';
31.		$okay = FALSE;
32.	}
33.	
34.	// If there were no errors, print a success message:
35.	if ($okay) {
36.		print '<p>You have been successfully registered (but not really).</p>';
37.	}
38.	?>
39.	</body>
40.	</html>