When I exit a screen, I should be asked: “Do you want to save?” codeigniter
<p>I want to do something like this: If I am viewing a record and edit it or add a new record and then exit that screen, I should be asked, “Do you want to save?”</p>

<p>How can I develop this thing in php? I haven't done this type of development before..</p>

<p>Any suggestions?</p>