• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing letters in search function (url and function)

#2
[eluser]Aken[/eluser]
In the controller that processes the POST request:

1) Validate the orignal search query. Once it is valid...
2) Add it to session userdata.
3) Figure out what the English version is.
4) Forward the user to mysite.com/search/englishversion
5) On the results page, check if the session variable exists. if it does, search by that. If not, search by what's in the URL (make sure to sanitize it).


Messages In This Thread
Changing letters in search function (url and function) - by El Forum - 04-16-2012, 03:11 AM
Changing letters in search function (url and function) - by El Forum - 04-16-2012, 03:10 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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