[prog] php

wolf wolf at wolfrising.net
Tue Mar 9 00:01:52 EST 2004


Hi,

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?

<td align="right">from&nbsp;&nbsp;</td>
<td colspan="2"><input type="text" onchange="enddayUpdate();" 
name="startday" size="12" value="<? echo date( 'n/j/Y', $event->start 
); ?>">&nbsp;&nbsp;at&nbsp;&nbsp;<input type="text" name="starttime" 
size="12"<? if ($event->allday) echo " disabled"; ?> value="<? echo 
date( 'H:i', $event->start ); ?>"></td>
</tr>
<tr>
<td align="right">to&nbsp;&nbsp;</td>
<td colspan="2"><input type="text" name="endday" size="12"<? if 
(!$event->allday) echo " disabled"; ?> value="<? echo date( 'n/j/Y', 
$event->end ); ?>">&nbsp;&nbsp;at&nbsp;&nbsp;<input type="text" 
name="endtime" size="12"<? if ($event->allday) echo " disabled"; ?> 
value="<? echo date( 'H:i', $event->end ); ?>"></td>
</tr>  


Thanks : )


More information about the Programming mailing list