PHP check if there is a file selected for upload [duplicate]
(Array ( [file_upload] => Array ( [name] => [type] => [tmp_name] =>
[error] => 4 [size] => 0 ) ))
PHP check if there is a file selected for upload [duplicate]
(Array ( [file_upload] => Array ( [name] => [type] => [tmp_name] =>
[error] => 4 [size] => 0 ) ))
PHP check if there is a file selected for upload [duplicate]
(Array ( [file_upload] => Array ( [name] => [type] => [tmp_name] =>
[error] => 4 [size] => 0 ) ))
Is it possible to get POST data without writting $_POST[]?
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!