Forums

two record with one submit

mja1356 27 Apr, 2009
Hi
I have a form that retrieve sum records from table A and after user input data an one field ,all data record in another table.
my question is :suppose record A retrieve from table A.if record A =0.5 or 1 then submit normally but if equal to .75 it divided to two number (0.5 and 1) and after submit insert each number in one independent record.
ao lot nam, quan lot nam, do boi tre em, do ngu, do ngu nu, rbi, narsis, do so sinh, do so sinh cho be, quan ao so sinh, ban buon quan ao, thoi trang cong so, ban buon quan ao, do lot[/url]
I hope you understand me
thanks
GreyHead 27 Apr, 2009
Hi mja1356,

I'm not certain I understand but if I do then you will just need to write the MySQL code to create the second record and add it to the OnSubmit box. ChronoForms automatic system will only write one record to a table.

Bob
mja1356 27 Apr, 2009
Hi Bob
Yes I want to write two records with one submit.does any solution with this?can i edit auto generated code to do that.
I connect two table with this form if there is no solution for above question can i set a condition to record data in two tables.
for example if field A=1 then write it in one table else write in two tables.
GreyHead 27 Apr, 2009
Hi mja1356,

You can't edit the Autogenerated code.

Please read my last reply.

Bob
This topic is locked and no more replies can be posted.