Hello, this is my assignment the deadline on 5th October at 11:59 pm KSA
May you finish within a day and a half max
if the assignment requires any information for questions only that I did not give you, contact me S180203938@seu.edu.sa
College of Computing and Informatics
Assignment 1
Deadline: Thursday 5/10/2023 @ 23:59
[Total Mark for this Assignment is 8]
Student Details:
Name: ###
ID: ###
CRN: ###
“`
Instructions:
• You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on
Blackboard via the allocated folder. These files must not be in compressed format.
• It is your responsibility to check and make sure that you have uploaded both the correct files.
• Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between
words, hide characters, use different character sets, convert text into image or languages other than English
or any kind of manipulation).
• Email submission will not be accepted.
• You are advised to make your work clear and well-presented. This includes filling your information on the cover
page.
• You must use this template, failing which will result in zero mark.
• You MUST show all your work, and text must not be converted into an image, unless specified otherwise by
the question.
• Late submission will result in ZERO mark.
• The work should be your own, copying from students or other resources will result in ZERO mark.
• Use Times New Roman font for all your answers.
Question One
Pg. 01
Learning
Outcome(s):
Build web
applications using
PHP.
Question One
4 Marks
1. Create an HTML form that accepts the following inputs from 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 only validate that all received data are not 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.
Pg. 02
Question One
Question Two
Pg. 03
Learning
Outcome(s):
Question Two
4 Marks
1. Giving the following HTML form code:
Build web
applications using
PHP.
Comment
Your Comment:
Username:
Comment:
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:
•
2.
You should validate that all received data before processing them
as follows:
o Data should not be empty.
o The number of characters in the Comment should be less
than or equal to 100 words.
o You should display an appropriate error message for each
violation.
Include the screenshot of the webpage output as a part of your answer.
Pg. 04
Question Two