Chapter 7 Pursue in PHP for the Web: Visual QuickStart Guide (4th Edition) Posted March 1, 2019 · Edited March 1, 2019 by Cross127 I do not understand how to modify event.php so that it prints the selected days as an unordered list. <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Add an Event</title> </head> <body> <?php // Script 7.9 - event.php /* This script handle the event form. */ // Address error management, if you want. // Print the text: print "<p>You want to add an event called <b>{$_POST['name']}</b> which takes place on: <br>"; // Print each weekday: if (isset($_POST['days']) AND is_array($_POST['days'])) { foreach ($_POST['days'] as $day) { print "$day<br>\n"; } } else { print 'Please select at least one weekday for this event!'; } // Complete the paragraph: print '</p>'; ?> </body> </html>
Chapter 7 Pursue
in PHP for the Web: Visual QuickStart Guide (4th Edition)
Posted · Edited by Cross127
I do not understand how to modify event.php so that it prints the selected days as an unordered list.
</html>