答案 0 :(得分:0)
你可以这样做:"(In PHP format)"
echo "<form action=edit_c_log.php method=post id=modif>";
echo "<tr>";
echo "<td>" . $row['date'] . "</td>";
echo "<td>";
echo '<select id="state1" name="status">';
echo '<option value="Resolved">Resolved</option>';
echo '<option value="Pending">Pending</option>';
echo '<option value="Cased">Cased</option>';
echo '<option value="Resolved" selected>Resolved</option>';
echo "</select>";
echo "</td>";
echo "<td>" . "<input type=text name=status value=" . $row['status'] . "> </td>";
echo "<td>" . "<input type=text name=pending_reason value=" . $row['pending_reason'] . "> </td>";
echo "</tr>";
echo "</form>";
答案 1 :(得分:0)
我认为,更好的方法是使用像html这样的html代码。像这样:
<form action="edit_c_log.php" method="post" id="modif">
<table>
<tr>
<td><?php echo $row['date']; ?></td>
<td>
<select id="state1" name="name1">
<option value="Resolved">Resolved</option>
<option value="Pending">Pending</option>
<option value="Cased">Cased</option>
<option value="Resolved" selected>Resolved</option>
</select>
</td>
<td>
<input type="text" name="status" value="<?php echo $row['status'] ?>"
</td>
....
</table>
</form>