Thomas Bruederli a écrit :
but it does a lot of things that are probably not necessary.
true
I'd prefer a generic function like get_form_input($name) which does something like the solution posted by dc.ml[at]oxys.net but with also with GET parameters: $in = !empty($_POST[$name]) ? $_POST[$name] : $_GET[$name];
I don't like the idea to don't know from which method are data. I don't use $_REQUEST and your solution is $_REQUEST equivalent.
If you prefer, we can do get_input($name,$method='A') 'A' is for All with EGPCS order, and the equivalent of your code should be 'PG'
PS : Who are official devellopers with write access to cvs ? Patch to improve RFC2822 compliance on reply messages have not been applied. Who can I ask ?