这是php代码。我正在尝试将 php 变量回显到表单字段文本框属性中。
<?php
while($result=mysql_fetch_array($query))
{
$title=$result["title"];
$date=$result["date"];
$body=$result["body"];
$email=$result["email"];
$id=$result["id"];
//can i use the $id variable into the form field like bellow
//if not then how so
echo"<form action="" method="post">";
//Here i m using $id variable
echo "<input type="test" name="test" value='<?php echo "$id"?>'/>";
echo "<input type="submit" name="submit" value="submit"/>";
echo "</form>";
}
?>
谢谢