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>Add an Event</title>
7.	</head>
8.	<body>
9.	<?php // Script 7.9 - handle_event.php
10.	/* This script creates, sorts, and prints out an array. */
11.	
12.	// Address error management, if you want.
13.	
14.	// Print an introductory text:
15.	print "<p>You want to add an event called <b>{$_POST['name']}</b> which takes place on: <br />";
16.	
17.	// Print each weekday:
18.	if (isset($_POST['weekdays']) AND is_array($_POST['weekdays'])) {
19.	
20.		foreach ($_POST['weekdays'] as $day) {
21.			print "$day<br />\n";
22.		}
23.	
24.	} else {
25.		print 'Please select at least once weekday for this event!';
26.	}
27.	
28.	// Complete the paragraph:
29.	print '</p>';
30.	?>
31.	</body>
32.	</html>