PHP checkbox with date value
hi everybody, i'm trying create checkboxes have value of today's date, tomorrows date, etc. these should, of course, update date changes through php. using west coast time? here looks now:
<input name="booked" type="checkbox" id="booked" value="the date should updating today's date" />
1. declare timezone @ top of document
<?php putenv("tz=america/los_angeles");?>
2. add date input in
<input name="booked" type="checkbox" id="booked" value="<? echo date("j-n-y", $now); ?>" />
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment