An actual version of this problem can be found here
Did you tryed to add JS code to submit both forms?
No. All code being involved has been shown up!
A general help is the following section of the guide:
Guide > Getting Data from Users > Getting Data for Multiple Models
The opening "<?=" in the first line seems to have the corresponding closing "?>" in the wrong place.
BTW, you have to try to write a well formatted code.
Reading a bad formatted code is a torture to me.
Guide u noticed 'caused problems in another way(see this). So, this thread is obsolet by now!