It was really buggy but I think I found all the bugs. Below is the corrected code.
<?php
//Display this page
$places = 700;
?>
<html>
<head><title>Fix this script</title>
<style type='text/css'>
<!--
table {
margin-left: 3em;
padding: 5;
}
td {
padding: .1in .25in .1in .25in;
}
h2,h3 {
font-weight: bold;
text-align: center;
}
-->
</style>
</head>
<body>
<?php
$event = 'Three Hundredth Annual World Magic Convention' ;
$schedule = array('Spells' => 1,'Potions' => 2,'Charms' => 3 );
define('DATE','January 15');
echo "<h2>\"style=\"color: red Announcing the $event\"</h2>";
echo '<h3>'.DATE.'</h3>';
echo '<p>This yearly conference—the premier education and networking forum for the magic community—is the place';
echo 'to learn about the most successful magic methodologies and to understand how to integrate new magic technologies into your current practices. </p>';
echo '<p>This year\'s conference offers the following educational events.</p>';
echo '<table border="1">
<tr><th>Time</th><th>Session</td></tr>';
foreach($schedule as $name => $time)
{
echo "<tr>
<td>$time</td>
<td>$name</td>
</tr>";
}
echo '</table>';
echo '<p style=\'margin-top: 2em\'>Witches and Warlocks! Hurry and sign up! Places are filling up fast. ';
echo '<h3>Only $places places left</h3>';
?>
</body>
</html>
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
Offline 3,004 posts
since Sep 2007