File math.html contains a form that has to be processed with a PHP program that you will write. Perform the following tasks:   1. Show the name of your PHP program and your name in the form.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

File math.html contains a form that has to be processed with a PHP program that you will write. Perform the following tasks:

 

1. Show the name of your PHP program and your name in the form.

 

2. Replace the fixed + sign in the form with a textbox, so that the user can enter + or -.

 

3. Write and test a PHP program that will do the following:

a. Validate that the operation in the textbox corresponds to the operation selected by the radio button in the operation radio button group.

 

b. Validate that the operands are integers with values corresponding to the selection in the grade radio button group.

 

c. Check that the result entered by the user is a correct integer. If so, send a message to the browser and ask for another submission of the form. If not, send to browser an error message and request resubmission of the form.

 

d. Keep track of the number of correct and incorrect answers of the user during the session and include both in the messages that acknowledge a correct result or notify for a wrong result, if the Display Summary checkbox is checked.

 

If there are validation errors, send an appropriate message to the browser and request resubmission of the form

Math Practice
7
%3D
smile face
Check Answer
Grade
Operation
Grade 1 (1-10)
Grade 2 (11-99)
Addition
Display Summary
Subtraction
Transcribed Image Text:Math Practice 7 %3D smile face Check Answer Grade Operation Grade 1 (1-10) Grade 2 (11-99) Addition Display Summary Subtraction
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Label Controls
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education