I want to return the upload file path to the front-end save, but the background php file JS is not executed, the foreground input tag value is always empty
The background acceptfile.php code is as follows:
Front-end index.php form forms:
Ask the question where the file is saved to the appropriate folder, the path cannot be returned to the front-end form form
Reply content:
I want to return the upload file path to the front-end save, but the background php file JS is not executed, the foreground input tag value is always empty
The background acceptfile.php code is as follows:
Front-end index.php form forms:
Ask the question where the file is saved to the appropriate folder, the path cannot be returned to the front-end form form
Parent
This variable refers to the parent window that contains the current split window. If there is a split window within a window, and a split window is included in one of the split Windows, the 2nd split window can refer to the parent partition window that contains it.
When you click Submit, the page is redirected and the parent is invalid.
It is recommended that you use Async.
The form has been submitted, the page refreshed, so the php file output JS useless, it is recommended to do Ajax upload, return the file storage path, and then submit the form.