Articles → PHP CODEIGNITER → Get the value of textbox in controller in codeigniter

Get the value of textbox in controller in codeigniter






Example










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