php and javascript examples from PROG8020 php and javascript class