Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In this homework, you will create basic PHP web applications. The first applicat

ID: 3818479 • Letter: I

Question

In this homework, you will create basic PHP web applications. The first application is to present user a feedback form. After user fill in the data and press the submit button, your PHP script will process the form and then echo back whatever the user entered. Ex-1 Create a feedback form which contains a drop down list, three text fields, a radio button group, a comment field, and a submit button. When user click the submit button, your system will echo back whatever user entered. Please answer both excercises. Thanks

Exercise 1 Create a web form such as the following that ask the user to enter information. Construct a PHP script that handle the user's input by send back whatever user entered. t Nanan Please complete this form to submit your feedback: Please complete this form to smbmit your feedback: Name: M Name: Email Email Address Response: This is O excellent O okay O boeing Response: This ik... O excellent O okay O boring Send My Feedback Send My Feedtirok Please complete this form to submit your feedback: Name: v John Smit Email Address sagmalicom Responke: This excellent okay O bocing i like it Send My Feedback The response from your PHP script as follows Thank you, Mr. John Smith, for your comments. You stated that you found this example to be 'excellent' and added lake it

Explanation / Answer

details.html

<!DOCTYPE html>
<html>
<head>
   <title></title>
</head>
<body>
   <form action="details.php" method="post">
       Please complete the form to submit feedback: <br><br>
       Name:
       <SELECT name="prefix">
           <option value="Mr.">Mr.</option>
           <option value="Mrs.">Mrs.</option>
           <option value="Ms.">Ms.</option>
       </SELECT>
       <input type="text" name="name"> <br><br>
       Email Address: <input type="text" name="email"><br><br>
       Response: This is...
       <input type="radio" name="response" value="excellent">excellent
       <input type="radio" name="response" value="okay">okay
       <input type="radio" name="response" value="boring">boring<br><br>
       Comment:<textarea rows="4" cols="50" name="comments"></textarea><br><br>
       <input type="submit" value="Send My Feedback">
   </form>
</body>
</html>

detais.php

<!DOCTYPE html>
<html>
<head>
   <title></title>
</head>
<body>
Thank you,
   <?php
       echo $_POST["prefix"];
       echo " ";
       echo $_POST["name"];
       echo "for your comment.";
       echo nl2br(" ");
       echo "You started that you found this example to be ";
       echo $_POST["response"];
       echo " and added:";  
       echo nl2br(" ");
       echo $_POST["comments"];
   ?>
</body>
</html>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote