[prog] php

wolf wolf at wolfrising.net
Tue Mar 9 09:15:36 EST 2004


Hmm, I tried that and when I entered the time and then selected AM or 
PM it didn't seem
to carry over to the events calendar, maybe I  just need to put the 
HTML tags inside
the PHP tags? Will try again : )

Thanks!


On Mar 9, 2004, at 7:08 AM, Dan Richter wrote:

>> 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
>
> _______________________________________________
> Programming mailing list
> Programming at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/programming
>



More information about the Programming mailing list