Answer:
<form action="my_feedback.php" method="post">
Name:
<select name="title">
<option> Dr. </option>
<option> Mr. </option>
<option> Mrs. </option>
<option> Ms. </option>
</select>
<input type="text" name="name" required="required"> <br/> <br/>
Email Address: <input type="text" name="email" required="required"> <br/> <br/>
Phone Number: <input type="text" name="phone" required="required"> <br/> <br/>
Rating...
<input type="radio" name="rating" value="excellent"> Excellent
<input type="radio" name="rating" value="okay"> Okay
<input type="radio" name="rating" value="boring"> Boring
<br/> <br/>
Comments: <textarea name="comments" rows="4" cols="15"> </textarea> <br/> <br/>
<input type="submit" value="Send My Feedback">
</form>
PHP FILE:
<?php
# form method is post so that's why $_POST is used and the nae used with the $_POST in the [] parentheses is the name
# attribute of the html tag.
echo "Thank you, " . $_POST['title'] . " " . $_POST['name'] . ", for your comments. <br/> <br/>";
echo "Your email address is " . $_POST['email'] . " and your phone number is " . $_POST['phone'] . "<br/> <br/>";
echo "You stated that you found this example to be '" . $_POST['rating'] . "' and added: <br/>";
echo $_POST['comments'];
?>
Step-by-step explanation: