Darth Ferret wrote:
> I would like to initialize a date field to todays date, and allow them to
> change it if they want. Can someone tell me how to do this?
In PHP:
<fieldset>
<legend>Date</legend>
<input id="dd" name="dd" maxlength="2" size="2" type="text"
value="<?php echo date('d'); ?>">
<input id="mm" name="mm" maxlength="2" size="2" type="text"
value="<?php echo date('m'); ?>">
<input id="yyyy" name="yyyy" maxlength="2" size="2" type="text"
value="<?php echo date('Y'); ?>">
<label for="dd" title="Day">dd</label>/<label for="mm"
title="Month">mm</label>/<label for="yyyy" title="Year">yyyy</label>
</fieldset>
Of course, this requires that your host supports PHP.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me -
http://www.goddamn.co.uk/tobyink/?id=132