Welcome Guest, Not a member yet? Register   Sign In
How to pass controller function parameters in codeigniter from forms?
#1

[eluser]Unknown[/eluser]
I have a search city in my website, my search bar is a option where they can select which city they want to view. but when i search a city in my website, it directs to this url: foobar.com/s/

now i want the url to become like this: foobar.com/s/california

my select options have this format:

<select name='city'>
<option value='california'>California</option>
</select>
how can i make the value of the option be seen in the url?
#2

[eluser]Aken[/eluser]
You'll have to process the form then redirect to the appropriate URL.




Theme © iAndrew 2016 - Forum software by © MyBB