Articles → PHP CODEIGNITER → Get The Value Of Textbox In Controller In Codeigniter

Get The Value Of Textbox In Controller In Codeigniter






Example




  1. A text box
  2. A submit button


echo form_open();
echo form_input('username'); 
echo form submit('mysubmit', 'Click Me'); 
echo form close();




echo $this->input->post("username");



Output




Picture showing the output of how to get the value of textbox in codeigniter
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, August 10, 2020

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250