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.

Add an Event

/* 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!