我有这个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;?>"/>