How to Use submit to accomplish two goals?

How to Use submit to accomplish two goals?

RE: . How do I accomplish two objectives: submit data to MySQL database table and replace content area with a second form? The first form worked fine until I added a second form to replace it. Then upon hitting submit on the first form no data was sent to the database; however, the second form replaced the first from just as it should.