Ask a basic question: how does name "attachment. fileName" return a value? The front-end defines the following set of input boxes to pass the uploaded file information.
The post method is submitted to the background. how can I set the value in the background?
Try $ _ REQUEST ['attachment. id']; the value cannot be obtained
Try $ _ REQUEST ['attachment'] ["id"]; the value cannot be obtained.
I don't know how to get it. Please advise first?
Reply to discussion (solution)
Print the $ _ REQUEST array ,,
After submission, "." is replaced "_"
$ _ REQUEST ['attachment _ id'];
And the value of your attachment_id does not have a value.
Print $ _ REQUEST.
Print_r ($ _ REQUEST );
You can write it in this way, and the background will be OK.
$ _ REQUEST ['attachment'] ["id"]; the value is
Var_dump ($ _ REQUEST );
$ _ REQUEST ['attachment _ id'];
Get the value. thank you for posting the Post upstairs.