[eluser]Unknown[/eluser]
Hi I have made my website with CodeIgniter and it's pretty cool.
I made a admin page for adding data into the database
I use 2 form_dropdown, one for product brand and another for product category , I also add 2 submit button for adding brand or deleting it.
there's also other input text for adding other info for a product.
I have a main form_open for all the the control that point to my controller. I also use another form_open for adding brand and category.
the problem is that there's a conflic with the main form_open.. ... I need it because I use it for adding a product into my database and it contain all the control..... the other form_open that is inside the main form_open don't work because it's always use the main form_open controller...parameter.
it's there a way to do a submit and point to a particuliar controller and get the control data without a form_open.... here a small exemple
<?php echo form_open('admin/add'); // main form ?>
<?php echo form_open('admin/add_brand'); // for adding brand ?>
<!-- this don't work because it use "admin/add" instead of "admin/add_brand"
<?php echo form_close(); ?>
<?php echo form_open('admin/add_category'); // main form ?>
<?php echo form_close(); ?>
<?php echo form_close(); ?>
thanks