Programming with PHP Part 1 Chapter 2 Programming with PHP Part 1
form.html Script 2.1 on pages 37-8 http://csweb.hh.nku.edu/csc301/frank/ch02/form.html ch02\form.html
GET <form method=“get”> http://www.example.com/script.php?name=Homer&gender=M&age=35 GET is less secure since data is transmitted in the clear. GET is used for requesting information.
POST <form method=“post”> Form data is in the body of the packet. POST is used when an action is expected; updating of a database record or sending of an email.
handle_form.php Script 2.2 on page 42 http://csweb.hh.nku.edu/csc301/frank/ch02/script_02_02/form.html ch02\script_02_02\handle_form.php The <pre> tag defines preformatted text. Text in a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.