100 likes | 196 Views
Chapter 2. Programming with PHP Part 3. handle_form.php. Script 2.5 on page 56 http://cscdb.nku.edu/csc301/frank/ch02/form.html ch02 handle_form.php. Superglobal Arrays. $_GET, $_POST, $_REQUEST $_SERVER $_ENV $_COOKIE, $_SESSION. Indexed arrays. $student[0] = “Black”;
E N D
Chapter 2 Programming with PHP Part 3
handle_form.php • Script 2.5 on page 56 • http://cscdb.nku.edu/csc301/frank/ch02/form.html • ch02\handle_form.php
Superglobal Arrays • $_GET, $_POST, $_REQUEST • $_SERVER • $_ENV • $_COOKIE, $_SESSION
Indexed arrays $student[0] = “Black”; $student[1] = “Brown”; $student[2] = “Green”; $student[3] = “White”;
Indexed arrays $student[] = “Black”; $student[] = “Brown”; $student[] = “Green”; $student[] = “White”;
Associative Arrays $states = array ( ‘IN’ => ‘Indiana’, ‘KY’ => ‘Kentucky’, ‘OH’ => ‘Ohio’ ) echo $states[‘KY’];
calendar.php • Script 2.6 on page 59 • http://cscdb.nku.edu/csc301/frank/ch02/script_02_06/calendar.php • ch02\script_02_06\calendar.php
multi.php • Script 2.7 on pages 62-63 • http://cscdb.nku.edu/csc301/frank/ch02/multi.php • ch02\multi.php
sorting.php • Script 2.7 on pages 66-67 • http://cscdb.nku.edu/csc301/frank/ch02/sorting.php • ch02\sorting.php
calendar.php • Script 2.9 on pages 71-72 • http://cscdb.nku.edu/csc301/frank/ch02/calendar.php • ch02\calendar.php