The counting teacher

Your start \"$start\" is not a number.\n"; $start_the_count=0; } // if the end input is there and not a number if($end and ! is_numeric($end)) { print "Your end \"$end\" is not a number.\n"; $start_the_count=0; } if($end < $start) { print "Your start is higher than your end.\n"; $start_the_count=0; } // if there is no input, usually when the page is first loaded if(! $start and ! $end) { $start_the_count=0; } if($start_the_count) { print "
This is the count.
"; $count=$start; while($count<=$end) { print "$count\n"; $count++; } print "
"; } else { print "
Please enter start and end numbers. I will count from start to end.
\n"; } ?>

Valid XHTML 1.0!