• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.