• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
passing 1 (or more) param's to a controller function?

[eluser]Mad Maurice[/eluser]
If you want to get function params as array use the php function func_get_args and leave the function header without params.

Should work

In this case I'd use the Post method... why? It's SAFER! Just imagine some one figures out that they can pass IDs through the URL and wipe out all the data! GAH! Makes me nervous. If you were selecting data, that would be one thing... but when manipulating DB data.... POST all the way.


Hi techgnome

a user would have to logon in order to access this function, and they'd only be manipulating their own data, BUT point taken for the example I gave!



Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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