Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a PHP programming class In this project, you will create a Web page that allows visitors to your site to sign a guest

This is a PHP programming class

In this project, you will create a Web page that allows visitors to your site to sign a guest book that is saved to a text file. Ensure that the Projects directory has read and write permissions for everyone.

1. Create a new document in your text editor and type the declaration, element, document head, and

element. Use Guest Book as the content of the element. <p>2. Add the following text and elements to the document body:</p> <p><img src="https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39a8f09b0b_84666f39a8e85284.jpg" alt="image text in transcribed"></p> <p> </p> <p>3. Save the document as GuestBook.html.</p> <p>4. Create a new document in your text editor and type the declaration, element, document head, and </p> element. Use Sign Guest Book as the content of the element. <p>5. Add the following script section to the document body:</p> <p><?php </p> </p><p>?></p> <p>6. Add the following if statement to the script section to check whether the user filled in the first name and last name fields:</p> <p> </p> <p><img src="https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39a8fae049_84766f39a8f415c3.jpg" alt="image text in transcribed"></p> <p> </p> <p>7. Add the following else clause to the end of the script section. The statements in the else clause use the fwrite() function to add visitor names to a text file named guestbook.txt.</p> <p> </p> <p><img src="https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39a906cd19_84766f39a8fde05d.jpg" alt="image text in transcribed"></p> <p> </p> <p> </p> ! DOCTYPE html> html lang-"en"> ?head> <meta charset="UTP-8"> title>Guest Bookk/title> body> h2>Enter your name to sign our guest book ?form method-"POST" action-"SignGuestBook.php"> <p>First Name Kinput type-"text" name-"first name">X/p> </p><p last name name-> <pxinput type- value-></pxinput>X/p> <input type="text"> </p><p>Show Guest Book </p> ! DOCTYPE html> html lang-"en"> ?head> <meta charset="UTP-8"> title>Guest Bookk/title> body> h2>Enter your name to sign our guest book ?form method-"POST" action-"SignGuestBook.php"> <p>First Name Kinput type-"text" name-"first name">X/p> </p><p last name name-> <pxinput type- value-></pxinput>X/p> <input type="text"> </p><p>Show Guest Book </p>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago