Create an HTML form that accepts the following inputs from a user: Author Name Book Title Book status Book Description
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →All details are shown inside the file (please follow the required steps carefully)
Requirements: 00
Question One
Create an HTML form that accepts the following inputs from a user:
Author Name
Book Title
Book status
Book Description
Write a PHP file that displays the following:
Author Name
Book Title
Book Description
Important Notes:
You should only validate that all received data are not empty before processing them.
The Book Title should be colored green if the user selects New for Book Status. Otherwise, it should be colored red.
Include the screenshot of the webpage output as a part of your answer.
Question Two
Giving the following HTML form code:
<!DOCTYPE html>
<html>
<head><title>Comment</title></head>
<body>
<h1>Your Comment:</h1>
<form action=”commentProcess.php” method=”post”>
<label for=”username”>Username:</label>
<input type=”text” name=”username” id=”username”>
<br><br>
<label for=”comment”>Comment:</label>
<textarea name=”comment” id=”comment” cols=”30″ rows=”10″></textarea><br><br>
<input type=”submit” value=”Send”>
</form>
</body>
</html>
Write a PHP file (commentProcess.php) that displays all input from a user and the total number of characters written in the comment.
Important Notes:
You should validate that all received data before processing them as follows:
Data should not be empty.
The number of characters in the Comment should be less than or equal to 100 words.
You should display an appropriate error message for each violation.
Include the screenshot of the webpage output as a part of your answer.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds