Question: do not understand how to modify event.php so that it prints the selected days as an unordered list. Add an Event
do not understand how to modify event.php so that it prints the selected days as an unordered list.
/* This script handle the event form. */
// Address error management, if you want.
// Print the text:
print "
You want to add an event called {$_POST['name']} which takes place on: ";
// Print each weekday:
if (isset($_POST['days']) AND is_array($_POST['days'])) {
foreach ($_POST['days'] as $day) {
print "$day ";
}
} else {
print 'Please select at least one weekday for this event!';
}
// Complete the paragraph:
print '
';?>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
