如何使用 php 和 mysql 将当前时间放在表单中.我想把当前时间放在这些字段中,请帮助我


How to put Current time in form using php and mysql?. I want to put current time in these fields Please help me

我想以php形式在文本框字段中插入当前时间。我应该如何插入它.请帮助我。我是php和mysql的新手。

一些简单的谷歌已经解决了它。

<input type="text" name="time" value="<?php echo date('H:i:s')?>">

用于时间手册 http://php.net/manual/en/function.time.php

<input type="text" name="curr_time" value="<?php echo date('H:i:s')?>">