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.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter7: Input/output Technology
Section: Chapter Questions
Problem 6VE
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
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning