if (!empty($credit_hours) && !is_numeric($credit_hours))
{
return 'Invalid credit-hour specification of <tt>' . htmlentities($credit_hours) . '</tt> for ' . htmlentities($course_name) . '-' . htmlentities($letter) . '. Please use a floating point number or do not enter anything if the number of credit hours is not known.';
. ' You have the following errors in your input:' . PHP_EOL
. ' </p>' . PHP_EOL
. ' <ul>' . PHP_EOL;
foreach ($errors as $error)
echo ' <li>' . $error . '</li>' . PHP_EOL;
echo ' </ul>' . PHP_EOL
. ' <h3>Solving Errors</h3>' . PHP_EOL
. ' <ul>' . PHP_EOL
. ' <li>Most importantly, click the <em>Fix</em> button below to return to the schedule editing page to resolve these errors. Hitting your browser\'s <em>Back</em> button will cause your input to be lost.</li>' . PHP_EOL
. ' <li>Ensure that no section\'s start or end times are left blank. Any blank start or end times are shown as <tt>none</tt> in the above error output.</li>' . PHP_EOL
. ' <li>Ensure that a section\'s end time is later in the day than its start time.</li>' . PHP_EOL
. ' <li>If you are having trouble resolving these issues, please feel free to <a href="feedback.php">leave us feedback</a>. Be sure to describe your problem with as much detail as possible; otherwise we may only be able to make conjectures about the errors instead of finding and fixing any bugs. Thanks! <em>(To provide us with the most reliable data, save this webpage onto disk and paste the entire (X)HTML source into the feedback form.)</em></li>' . PHP_EOL