CodeIgniter Forums
[HELP] two form_open in one view php page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: [HELP] two form_open in one view php page (/showthread.php?tid=37594)



[HELP] two form_open in one view php page - El Forum - 01-14-2011

[eluser]Unknown[/eluser]
My Code :

Code:
<h3>Hapus Data Barang</h3>
        
        &lt;?php echo form_open('admin/hapus_barang'); ?&gt;
        &lt;?php echo form_input('id2', ''); ?&gt;
        &lt;?php echo form_submit('submit', 'first button'); ?&gt;</p>
        &lt;?php form_close();?&gt;

<h3>Rubah Data Barang</h3>
        
        &lt;?php echo form_open('admin/ubah_barang'); ?&gt;
        &lt;?php echo form_input('id3', ''); ?&gt;
        &lt;?php echo form_submit('submit', 'second button'); ?&gt;</p>
        &lt;?php form_close();?&gt;

why i can't get values from admin/ubah_barang when the second button pressed???

i get to controller admin/ubah_barang... whereas i press the second button!?

plzzz help to resolve my problem... thx... NEWBIE 4EVER ^_^


[HELP] two form_open in one view php page - El Forum - 01-14-2011

[eluser]Cristian Gilè[/eluser]
You don't echo the form_close()

Cristian Gilè


[HELP] two form_open in one view php page - El Forum - 01-14-2011

[eluser]mi6crazyheart[/eluser]
Can u show us the controller code... ?