任何想法如何處理這個問題?我的問題是,當我在form2上提交form1自動提交。我想要的是當我在form2上提交時,只有form2提交它。請檢查此示例代碼。Codeigniter在form_open上提交form1 form2
<?php echo form_open('form1'); ?>
<input type="text" name="name">
<?php echo form_open('form2'); ?>
<input type="text" name="note">
<input type="submit" value="button2"> // this form2 is to insert note on this day
<?php echo form_close(); ?>
// then under this form2 we have a table. Table for list of note that all ready insert.
<input type="submit" value="button1"> // this form1 is to save all. the "Name" and also the note that we insert it on form2
<?php echo form_close(); ?>
你爲什麼把form2放在form1裏面? – Yalamber
,因爲在form2下我有一張桌子。並且該表格正在form1下保存。這就是爲什麼我需要兩種形式。這個問題有可能先生? – wewe
表格2正在表格下保存。 – wewe