Chapter 04
PHP Files
pokerDice.php
source
the poker dice game
simpleFor.php
source
basic for loops
countByFive.php
source
modifying a for loop to count by five
countingBackwards.php
source
building a for loop that counts backwards
while.php
source
the basic while loop
badWhile.php
source
example of an endless loop
This code results in a deliberate endless loop! If you run this program, you may have to close the browser manually.
basicArray.php
source
demonstrates basic arrays
FancyOldMan.php
source
improve "this old man" with arrays"
persistence.php
source
using hidden fields to make persistant data
session.php
source
using a session variable for persistence
readArray.php
source
reading an array from a form
CSS Files
pd.css
readArray.css
Image Files
die1.jpg
die2.jpg
die3.jpg
die4.jpg
die5.jpg
die6.jpg