Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB