Question: Write a program called week2.php that displays a form that submits to itself. When initially accessed, week2.php displays an HTML form. If the the user

 Write a program called week2.php that displays a form that submits

to itself. When initially accessed, week2.php displays an HTML form. If the

the user POSTs the form, week2.php will simply output the names and

Write a program called week2.php that displays a form that submits to itself. When initially accessed, week2.php displays an HTML form. If the the user POSTs the form, week2.php will simply output the names and values (if any) ofeach of the form elements, and exit. Use htmlspecialchars on the form data that you display. If one of your form fields is unset (i.e., the checkbox), output something like [no value] in place of the value. Copy the following from the class website and use it for your assignment, replacing the just the multi-line comment with the necessary PHP code 1. O iso-8859-1 ?php echo xml version encoding DOC TYPE html /W3C /DTD XHTML 1. O Strict /EN PUBLIC http:// w3. org/TR/xhtml 1 DTD/xhtml, 1-strict. dtd" http:// w3. org 1999 /xhtml

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!