IT 405 SEU Creating an HTML Form Accepting Inputs Questions

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.
Pg. 01
Learning
Outcome(s):
Build web
applications using
PHP.
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
Heading 1.‫على النص الذي ترغب في أن يظهر هنا‬
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.
‫على النص الذي ترغب في أن يظهر هنا‪Heading 1.‬‬
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
‫‪Pg. 02‬‬
Pg. 03
Learning
Outcome(s):
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
Heading 1.‫على النص الذي ترغب في أن يظهر هنا‬
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.
‫على النص الذي ترغب في أن يظهر هنا‪Heading 1.‬‬
‫خطأ! استخدم عالمة التبويب “الصفحة الرئيسية” لتطبيق‬
‫‪Pg. 04‬‬

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed with your coursework?
Get quality coursework help from an expert!