Hello, I'm a newbie so please forgive if my question is silly
I have 2 tables.
+ Bill(bill_id, order_id, create_date)
+ Bill_detail(bill_id, product_id, product_seri, status)
(1 to many relationship)
+ Order_detail(order_id, product_id)
Now I created the form that
- foreach product in order_detail(within one order), i created an input field for product_seri
then I click submit
for example:
-In order 1
Product:A Seri:AXC
Product:A Seri:BXD
Product:B Seri:TTT
Then I click submit, But the $Post['Bill_detail']['Seri'] ony take the final value, TTT.
To sum up: How can I submit the same input field (with the same label in form) but different value to Server
Page 1 of 1
Submit Multiple Rows In One Table
#2
Posted 09 December 2012 - 02:29 AM
Hi Tris,
Welcome to the forum.
I hope this section of the guide will be a help.
http://www.yiiframew...1/en/form.table
Welcome to the forum.
I hope this section of the guide will be a help.
http://www.yiiframew...1/en/form.table
#4
Posted 19 April 2013 - 02:00 PM
Good discussion. Thanks Softark and Tris
http://aimagu.blogspot.com
CEO AIMAGU
CEO AIMAGU
Share this topic:
Page 1 of 1

Help












