Articles → PHP CODEIGNITER → How To Retain Value In Form Element During Postback In CodeigniterHow To Retain Value In Form Element During Postback In CodeigniterIn this article, we will discuss how to retain the value in the form element (for example textbox) during postback.Example We will work on an example where we have 2 controls.TextboxSubmit buttonOn click of the "Submit" button, postback will happen.Here is the codeigniter codeClick to EnlargeIn the above code, we are setting the value of the textbox using the method "set_value".Here is the outputClick to EnlargePosted By - Karan Gupta Posted On - Friday, August 7, 2020 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
Query/Feedback