Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

File: modify3.php Purpose:Chapter 6 Exercise REQUIREMENT: Write a Web-based application consisting of a Web form (modify3.html) and a PHP program (modify3.php). modify3.html includes a form

File: modify3.php Purpose:Chapter 6 Exercise

REQUIREMENT: Write a Web-based application consisting of a Web form (modify3.html) and a PHP program (modify3.php).

modify3.html includes a form that consists only of a Submit button When the button is pressed, modify3.php runs and opens the file tickets.txt which contains a list of three ticket orders. The program reads the ticket order on the first line, multiplies this by 6.50 (the price of each ticket) to get the cost of the sale, and displays the cost of the sale.

Modify modify3.php so that it reads and displays all three ticket orders and displays the cost of each sale AND also the total sales.

-->

Modify3

Modify3

$ticketSale1 = $ticketOrder1 * 6.50;

print("

TICKET SALE 1: $$ticketSale1

");

?>

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

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions