如何使用 php 写入 html 文本输入

How write in html text input by using php

我有这个 html 文本输入:

<input type="text" id='message'>  

我想将这个 php 变量写入文本输入:

$command="time={$_POST["time"]}age={$_POST["age"]}name={$_POST["name"]}"; 

我更喜欢 php 文件将值写入文本框,而不是 html 从 php file.How 中获取值,我可以这样做吗?

使用 input 标签的 value 属性:

<input type="text" id="message" value="<?php echo $command;?>"/>