The first page is a static page and it is stored as "index.html" The second page is a dynamic page and it is sired as "product_description.php" In the first page when you click on calculate discount button, the data will sent to the php file as post request, then the php file will response with the calculated discount as you can see in the figure.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 3.11CP
icon
Related questions
Question

Please create an html web page where the discount calculator will be created and the functionality will be implemented. Also, link it with the PHP. 

The first page (index.html)
| Product Discount Calculat x
C D localhost/book_apps/ch02_product_discount/
Product Discount Calculator
Product Description:
Guitar
List Price:
1250
Discount Percent:
12.5
Calculate Discount
The second page (product_discount.php)
Product Discount Calculat
C D localhost/book_apps/ch02_product_discount/display_di:☆
Product Discount Calculator
Product Description:
Guitar
List Price:
$1,250.00
Standard Discount:
12.5%
Discount Amount:
$156.25
Discount Price:
$1,093.75
The first page is a static page and it is stored as "index.html"
The second page is a dynamic page and it is sired as "product_description.php"
In the first page when you click on calculate discount button, the data will sent to the php file as post
request, then the php file will response with the calculated discount as you can see in the figure.
Transcribed Image Text:The first page (index.html) | Product Discount Calculat x C D localhost/book_apps/ch02_product_discount/ Product Discount Calculator Product Description: Guitar List Price: 1250 Discount Percent: 12.5 Calculate Discount The second page (product_discount.php) Product Discount Calculat C D localhost/book_apps/ch02_product_discount/display_di:☆ Product Discount Calculator Product Description: Guitar List Price: $1,250.00 Standard Discount: 12.5% Discount Amount: $156.25 Discount Price: $1,093.75 The first page is a static page and it is stored as "index.html" The second page is a dynamic page and it is sired as "product_description.php" In the first page when you click on calculate discount button, the data will sent to the php file as post request, then the php file will response with the calculated discount as you can see in the figure.
Your task is to write a simple product list application that lets you display the product data by category.
You can choose the types of product you want to display. You should at least include three categories
and include at least 5 products from each category. Inside the data base you should store at least 3
pieces of information for each category. The PHP code should be pulling the products from the
database.
This is an example
OMy Guitar Shop
C D localhost/book apps/ch04_product viewer/
Product List
Categories
Guitars
Guitars
Code
Name
Price
Fender Stratocaster
strat
les_paul Gibson Les Paul
Basses
699 00
Druma
1199.00
2517 00
489.99
Gibson SG
fg700s
washburn Washburn D10S
rodriguez Rodriguez Caballero 11
Yamaha FG700S
299.00
415 00
When you click on the name if the category that will direct you to the list of products of that category.
Furthermore, you will need to make a new page that allows you to add new product and put in
information to add a new product. This information should be added to the database with PHP.
Requirements
• Add all products to a MYSQL database
Make PHP pull product information from the MYSQL database:
When you click on the name of the category that will direct you to the list of products of that
category
Add a link with a text "add new product", when you click on the link that will direct you to a new
page to enter all the information of a new product then add a new product to the database.
• Your code should be structured perfectly and has great spacing and indentation.
Your code should be intensively commented in such a manner as Concise, meaningful, well-
formatted, and easy to understand by any one
Transcribed Image Text:Your task is to write a simple product list application that lets you display the product data by category. You can choose the types of product you want to display. You should at least include three categories and include at least 5 products from each category. Inside the data base you should store at least 3 pieces of information for each category. The PHP code should be pulling the products from the database. This is an example OMy Guitar Shop C D localhost/book apps/ch04_product viewer/ Product List Categories Guitars Guitars Code Name Price Fender Stratocaster strat les_paul Gibson Les Paul Basses 699 00 Druma 1199.00 2517 00 489.99 Gibson SG fg700s washburn Washburn D10S rodriguez Rodriguez Caballero 11 Yamaha FG700S 299.00 415 00 When you click on the name if the category that will direct you to the list of products of that category. Furthermore, you will need to make a new page that allows you to add new product and put in information to add a new product. This information should be added to the database with PHP. Requirements • Add all products to a MYSQL database Make PHP pull product information from the MYSQL database: When you click on the name of the category that will direct you to the list of products of that category Add a link with a text "add new product", when you click on the link that will direct you to a new page to enter all the information of a new product then add a new product to the database. • Your code should be structured perfectly and has great spacing and indentation. Your code should be intensively commented in such a manner as Concise, meaningful, well- formatted, and easy to understand by any one
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Elements and Tags
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
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L