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'
Agree. This would be a good solution.
So ? I do it ? Does everybody approve this solution ?
David