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

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

#12
[eluser]techgnome[/eluser]
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.

-tg

#13
[eluser]PeteSig[/eluser]
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!

Cheers

Pete


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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