Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help with question 5. its a php script Question 5 (6 marks) Write a PHP script that accepts HTTP GET and POST requests. When

please help with question 5. its a php script
image text in transcribed
Question 5 (6 marks) Write a PHP script that accepts HTTP GET and POST requests. When sent a GET request. your script should generate HTML markup containing a simple form with a text input box like that shown below. XML Page 3 of 6 The user is allowed to enter simple XML into the text box to perform an arithmetic operation, by specifying the type of operation: add subtract multiply divide, and a pair of numbers on which to perform the operation. When the user clicks the Submit button shown above, the PHP script should be sent a POST request with the XML entered by the user. Your script will need to parse the XML to perform the requested arithmetic operation Ensure that your script can parse and understand the XML code below and perform the requested add' operation Carithmetics add 51> number2>3 The parser should also be able to handle the other arithmetic operations including subtract, multiply and divide. It should also report parse errors and invalid arithmetic operations, and handle divide-by-zero errors

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

Students also viewed these Databases questions