Professional Documents
Culture Documents
Bbit 201 Internet Application Programming
Bbit 201 Internet Application Programming
Bbit 201 Internet Application Programming
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
[7 Marks]
f) Diffentiate between GET and POST values as used in a method attribute for a PHP form.
[ 4 marks]
1
QUESTION TWO [20 MARKS]
a) Explain three ways how you can place a javaScript in an html document. [3 Marks]
b) Briefly explain the use of the following functions in javaScript.
i) Document.write()
ii) Prompt()
iii) getElementById()
iv) Document.alert()
[8 marks]
c) Write a javaScript code to validate the following checkboxes in the form named
school.
[9 Marks]
2
[8 Marks]
c) Given the following form that is used to process transaction, write a javascript code to
test if the user has entered values in all the textboxes then calculate and displays the
total price in the field total price(hint total price=product quantity*unit price) after the
user clicks Calculate button.
[8 marks]
[10 Mark]
b) Write a php script to create a file called cashier.php that acts the as the backend to
receive the data send in [a] above then calculates and displays current balance( hint
current balance=previous balance+deposit). When the user enters account number as
000122, account names samsang, previous balance as 1000 and deposit as 5000 then
the page appears as follows:
3
[10 Marks]