これが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>";
}
?>
ありがとうございました