如何使用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文件中获取值。我怎么可能这么做?

使用input标签的value属性:

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