On Tue, 8 Jul 2003 16:44:16 +0200, "awebb" <andywebb25hotmail.com>
>I'm trying to insert a date/time value into my db by using a hidden field.
>This is the current code:
><?php $time=gmdate("Y/m/d H:i:s"); ?>
> <td colspan="3" align="center"><input type="hidden" name="booktime"
>But it won't produce a result in the db.
I'm curious why you are using an entire table cell for a hidden field,
but that's another question. ;-)

The following line is not inside a PHP code block:
<input type="hidden" name="booktime" value="$time">

What that means is that "$time" is not evaluated and replaced before
the form is sent to the browser. If you look at the source code of
your form page, you'll see it's just the string "$time". Try it this

<input type="hidden" name="booktime" value="<?=$time;?>">