CodeIgniter Forums
Form method GET - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Form method GET (/showthread.php?tid=37182)



Form method GET - El Forum - 12-31-2010

[eluser]Casperlarsen94[/eluser]
I have problem with the form method GET in my search form.

My form looks like this:
Code:
<form action="<?php echo base_url(); ?>search" method="get">
<input name="s" id="s" class="search_field" type="text" />
<input class="search_submit" value="" type="submit" />
</form>

And i can't get value from the URL, using this:
Code:
$this->input->get('s');

I hope you can help me Confused


Form method GET - El Forum - 12-31-2010

[eluser]InsiteFX[/eluser]
Thats because CI does not let you use GET!

There are work arounds on the forums, just do a search.

InsiteFX


Form method GET - El Forum - 01-01-2011

[eluser]Casperlarsen94[/eluser]
I used javascript to it Smile
But thanks for the quick answer Smile