Using HTML, create a webpage that contains a form with the following fields: A text box to enter name (mandatory) b. A text box to enter CGPA C. A submit button Write a PHP script that performs the following on clicking the submit button: a. Using regular expression check if the CGPA entered is a number less than or equal to 10. If no, display error message b. Check if the mandatory fields are filled in. If yes, display the message "Welcome ". If no, display error message

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3.6CP
icon
Related questions
Question

Using HTML, create a webpage that contains a form with the following fields:

A text box to enter name (mandatory)

b. A text box to enter CGPA

C. A submit button

Write a PHP script that performs the following on clicking the submit button:

a. Using regular expression check if the CGPA entered is a number less than or equal to 10. If no, display error message

b. Check if the mandatory fields are filled in. If yes, display the message "Welcome <name>". If no, display error message

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Form and its Elements
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning