Question: In PHP, create a simple guest book. Let the user enter information into a form, and add her comments to the already entered comments shown

In PHP, create a simple guest book. Let the user enter information into a form, and add her comments to the already entered comments shown at the bottom of the page when she clicks the Submit button. Comments should be stored in a file.

Required:

1. Form input validation/sanitation (listed below):

"method="post">




if( $_POST["name"] || $_POST["email"] || $_POST["contact"])

{

echo "Welcome: ". $_POST['name']. "
";

echo "Your Email is: ". $_POST["email"]. "
";

echo "Your Mobile No. is: ". $_POST["contact"];

}

?>

2. Minimum of two functions ie display_form(), show_comments(), append_comment()

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!