Introduction to PHP Lesson 6
PHP & Form Retrieve input from form and do processing There are two ways the browser client can send information to the web server. The GET Method The POST Method There are two ways the web server retrieved the data send by web client. $_GET[‘variableName’]; $_POST[‘variableName’];
PHP Simple Calculator
Exercise 1 What will the following php display in the browser? <HTML> <HEAD> <TITLE>PHP Exercise</TITLE><HEAD> <BODY> <?php $x = "<OL>"; $y = "<LI>"; $z = "</OL>"; print( "$x $y Sunday $y Monday $y Tuesday $z“); ?> <BODY> <HTML>
References C. Bates (2002). Web Programming: Building Internet Application. John Wiley & Sons : United States Of America H.M.Deitel, P.J. Deitel and T.R. Neito (2002). Internet & World Wide Web : How to Program. Prentice Hall: New Jersey. Introduction to PHP . URL: http://userpages.umbc.edu/~glong/notes/notes.php?topic =php&file=notes00.html PHP Introduction.URL : http://staffweb.cms.gre.ac.uk/~k.mcmanus/comp1037/ph p/Introduction.html Zend: The PHP Company. URL : http://www.zend.com/zend/art/intro.php