Welcome Guest, Not a member yet? Register   Sign In
[HELP] two form_open in one view php page
#1

[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 ^_^
#2

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

Cristian Gilè
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB