[prog] php
Dan Richter
daniel.richter at wimba.com
Tue Mar 9 14:08:32 EST 2004
> Would there be any way in this snippet of code which sets up a text box
> for the user to enter the time to also have it
> allow the user to select AM or PM?
Here's a simple way:
<select name="morning_evening">
<option>AM</option>
<option selected>PM</option>
</select>
Note: your HTML forms will be more accessible to the disabled if you use
the LABEL tag:
<LABEL FOR="startday">From</LABEL>
<INPUT TYPE="text" NAME="startday" ID="startday">
In some browsers, when you click on the label, it takes you to the input
box.
The FOR attribute of LABEL corresponds to the ID attribute (not the NAME
attribute) of the INPUT. The INPUT has both a NAME and an ID, which you
can choose (or not) to make the same.
--
If you look at too much HTML code you'll go blind.
- Jim Greenly, professor at Georgia Institute of Technology
More information about the Programming
mailing list