0
嗨,我使用表助手創建表,但每一行中我想補充的形式,在HTML這樣的:添加形成的每一行與表輔助函數CodeIgniter
<table>
<form action="">
<tr>
<td><input type="text" name="name2"></td>
</tr>
</form>
<form action="">
<tr>
<td><input type="text" name="name2"></td>
</tr>
</form>
</table>
但我想在表幫手: 我已經試過這一個:
$this->table->add_row(
form_open('myAction').
form_input('name'.$i),
form_submit('Submit')
form_close()
);
而且我用firebugs檢查元件產生,就像這樣:
<table>
<tr>
<form action="myAction">
<td><input type="text" name="name1"></td>
</form>
<td><input type="submit"></td>
</tr>
</table>
爲什麼標籤不會顯示在最後一個標籤處,而是顯示在第一個標籤處。
感謝