problem in saving

Hi,

i am using three from in a single web page...

my requirement is to save these forms in order of form1 form2 and then form3
form_Vendor_Info.save();
form_Vendor_Address.save();
form_Vendor_Contact.save();

but when i clicked the save button it form2 is called first and then the form1 is executed

i want save them in order because i use foreign key constraint …

help me…

Hello.

Attach demo please.