Say I may have some pages one send "my_name" in the form as "post", One might send "my_name" in the url as "get"
Both pages will send values to my_profile.php.
in my_profile.php
I will have to set up like this
if isset(GET['my_name'])
$my_name=GET['my_name'];
elseif isset(POST['my_name'])
$my_name=POST['my_name'];
else
$my_name="";
Is there any simple way, let me grab the value by one statement, no matter it is post or get.
(I remembered in the old ASP time, I can use one statmenet to grab the value no matter it is "post" or "get")
With "register_globals off" and with the php update to 5 in mind, what is the cleanest statement to grab the values from form/url/cookie ?
Thanks!