Professional Documents
Culture Documents
Bit 3202 Internet Programming Cat
Bit 3202 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
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
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
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)