Welcome Guest, Not a member yet? Register   Sign In
Form method GET
#1

[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
#2

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

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

InsiteFX
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB