HTML and CSS Reference
In-Depth Information
(continued)
we assume that one of the techies—Mike, Miranda, or Pitr—will take care of that.
If you want to test your own forms to see what values they're sending to the serv-
er, you can create a simple PHP file:
<?php
foreach ($_POST as $field_name => $field_value) {
print "Field $field_name : $field_value <br />\n";
}
?>
At the top of your HTML form you'll then have some code like this:
<form action="collector.php" method="post">
A prebuilt collector.php is available for download from the topic's website at
www.manning.com/crowther/ .
Number
Range
Datetime
5
4
20
Most of the screenshots
in the following sections
were taken in Opera 11.60
and 12, because that was
the first browser to add
full support for the new
controls. Exceptions
are mentioned in the text.
~
~
~
10
10
~
9
9
9
5
4
~
The basic number input provides a spinbox:
<input type="number" value="4">
Normally the arrows increment or decre-
ment by 1, but you can adjust this by using
the step attribute. This example increments
in steps of 2:
<input type="number" value="4" step="2">
 
Search WWH ::




Custom Search