I want to Retain the textbox values even after Refresh of page rather it is successfully submitted.
Using cookies or using php sessions
Here is the code Below :
You could solve this using jQuery and local storage.
This has been answered here: Saving form data to local storage and show it on refresh
It basically runs a load/save command when the page changes.