Re: How to manage date fields in template



Valeria wrote:
Hi, in my website I've a template file with date/time fields



<dt><label for="field_date_from">Sart Date</label></dt>
<dd id="data_date_from">
<select class="select" id="field_date_from" name="date_from_month">
<option value="">-</option>

{dropdownlist:date_months,""}
</select>
<select class="select" name="date_from_day">
<option value="">-</option>

{dropdownlist:date_days,""}
</select>
<select class="select" name="date_from_year">
<option value="">-</option>

{dropdownlist:date_years,""}
</select>
</dd>


Is it possible automatically select day month year of today?

Thanks

Yes, it's not hard at all in PHP. See http://www.php.net/manual/en/ref.datetime.php for the functions you need.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: Gallery Pagination Result Problem
    ... Jerry Stuckle ... JDS Computer Training Corp. ... To add to this, I've just noticed that when I load the landscape gallery, not only does it display all images now instead of just the landscape images, but if I click the paginated result for page 2, it changes the page title back to just Gallery, instead of the main page of Landscape gallery. ... I've got PHP and My SQL for Dummies, and PHP and MySQL Web Development. ...
    (comp.lang.php)
  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Script halts after 60 minutes
    ... Checked if php was running in safe mode, ... Does your server have a timeout value specified? ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Commands out of sync error
    ... connection at the top of the php page and then calling multiple stored ... When I call the 2nd stored procedure I'm ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)
  • Re: Parse .cfm files
    ... from the .cfm page to the .php page. ... the file extension of the source files. ... Jerry Stuckle ... JDS Computer Training Corp. ...
    (comp.lang.php)