我们可以使用同一页面的另一种形式的一种形式的用户输入数据

I have two forms in the same page, the first form will have email, name, password etc.

In a second form there are qualification, skills, institution etc.

I will add data from the first form into one table. I want to take the ID of the data from the first form and add qualifications, skills and institution in another table along with the ID from the first form.

I am doing this in php. Please give me an idea how to implement this.

try to do it with Ajax

User enters email, pass..etc, and clicks submit button after that trigger Ajax Call with form data. Store the data in your table and return Mysql Last Inserted Id. Store Last Inserted Id in your load JS Variable/HTML Hidden value.

Steps :

- User Enters Details and press Submit button
- Ajax call triggers with your data
- get Last Insert id from back-end(ajax response)
- store id in html hidden value or js variable
- use this details for next form