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):
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
Get step-by-step solutions from verified subject matter experts
