I am having problems getting write to to the guestbook.txt. I have read write and execute permission for the guestbook.txt. Can someone help me? Strict//EN"...

I am having problems getting write to to the guestbook.txt. I have read write and execute permission for the guestbook.txt. Can someone help me? Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Sign Guest Book content="text/html; charset=iso-8859-1" /> if (empty($_GET['first_ name']) || empty($_GET['last name'])) echo "You must enter your first and last name! Click your browser's Back button to return to the Guestbook."; else { $First Name = add slashes($_GET['first name']); $Last Name add slashes($_GET['last name']); $Guestbook = open("guestbook.txt", "a"); if (is writable("guestbook.txt")) { if (write($Guestbook, $Last Name . ", " . $First Name. "\n")) echo "

Thank you for signing our guest book!

"; else echo "

Cannot add your name to the guest book.

";} else echo "

Cannot write to the file.

"; close($Guestbook)?> Show Guest Book

Guest Book Enter your name to sign our guest book

First Name


Last Name


Show Guest Book




May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here