Pg. 01 Question Two “Error*” “Question TwoQuestion Two
Pg. 01
Question Two<> “Error*” “Question TwoQuestion Two
4 Marks
Learning Outcome(s):
Build web applications using PHP.
Question One
1. Create an HTML form that accepts the following inputsfrom a user:
• Author Name
• Book Title
• Book status
• Book Description
2. Write a PHP file that displays the following:
• Author Name
• Book Title
• Book Description
Important Notes:
o You should onlyvalidate that all received dataarenot empty before processing them.
o The Book Title should be colored green if the user selects New for Book Status. Otherwise, it should be colored red.
3. Include the screenshot of the webpage output as a part of your answer.
4 Marks
Learning Outcome(s):
Build web applications using PHP.
Question Two
1. Giving the following HTML form code:
<!DOCTYPEhtml>
<html>
<head><title>Comment</title></head>
<body>
<h1>Your Comment:</h1>
<formaction=”commentProcess.php”method=”post”>
<labelfor=”username”>Username:</label>
<inputtype=”text”name=”username”id=”username”>
<br><br>
<labelfor=”comment”>Comment:</label>
<textareaname=”comment”id=”comment”cols=”30″rows=”10″></textarea><br><br>
<inputtype=”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 databefore processing them as follows:
o Data should not be empty.
o The number of charactersin the Commentshould be less than or equal to 100 words.
o You should display an appropriate error message for each violation.
2. Include the screenshot of the webpage output as a part of your answer.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
