How to submit form data to a controller using the GET method in codeigniter
my opinion:
<form action="<?=base_url()?>index.php/frontend/main_con/temp"> <input type="text" name="temp"> <input type="submit"/> </form> Controller:
function temp(){ echo $_GET['temp']; } I cannot reach this function and I got an error
An error has been detected. The URI you submitted has illegal characters.
So, how to transfer form data to the controller using the GET method? than in advance.
+4
4 answers