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

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account