Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

INTERNET PROGRAMMING CAT

a. An organization would like to design a website that will enable salesmen to enter details of

their sales i. Design a HTML form with features to enter salesman number, product number,

product name, quantity and price then display total price. Include a method to send the details to

a PHP file called product.php. (6 Marks)

ii. Write a PHP code to receive the above details and calculate the total price and commission

which is offered according to products sold. A commission of 20% is offered if the total sale is

more than 100,000 otherwise a commission of 10% is offered. (5 Marks)

b. When designing a web site CSS rules can be embedded within a HTML or XHTML document

or can be stored in a different file. Compare the two methods of storing and presenting CSS

giving recommendations on the best method between the two. (5 Marks)

c. Write a simple php code to connect to mysql database called MKU_DB (6 Marks)

d. Explain the following control statements as used in PHP and give examples

i. If Statement (4 Marks)

ii. Switch statement (4 Marks)

You might also like