How can i use same form for insert and update in php?

I'm trying to use a single form for inserting a new data and updating the value of an existing data.I have no trouble displaying the form, fetching the data and updating it, but when I'm trying to insert a new data, the form does not appear. Here's my view

Description
Price >Active

Chủ Đề