Is it possible to get POST data by just writing the POST variable name like $post_var_name
instead of writing $_POST["post_var_name"]
? I recently ran into this kind of code, I tried wrapping the variable name with $_POST[]
, making it become $_POST["post_var_name"]
and it worked, I can get the POST data. However, there are a lot of code like this in the project, if I have to change all of them, it would be a terrible nightmare. Need help, thanks!
For example, I tried wrapping the variable name $post_var_name
with $_POST[]
, making it become $_POST["post_var_name"]
, and it worked, I can get the POST data.