Form upload file, how to pop up a new window called PHP processing, and return to the original window?
This is the case, the first window has a form for uploading files. After uploading the file, open Windows Two, use a PHP to process the file (for example, copy to a location), and then PHP to return the location of the file to Windows 1.
Window 1:
Window Product 2:
PHP code, call the InsertText function in Window 1, return the result.
Who can give a way? I now use Form action= ' A. PHP ", as a result, the new PHP window will flush out the original window. I didn't want to move the first window.
Thank you, I did a day, find all kinds of information. Helpless Foundation can not, ask you to help AH ~
------Solution--------------------
Ajax.
I remember that jquery has an uploaded plugin.
------Solution--------------------
IFRAME No flush upload file is a workaround, of course, there are other methods, key in the form tag's target property, it will determine where the form page opens
PHP code
------Solution--------------------
/HTTP/ download.csdn.net/detail/blizzf99/3987209
Look, this is going to help.
------Solution--------------------
Add
echo"
------solution--------------------
You might as well be in the first window, click the Pop up a new window to process the upload file, then use JS Window.opener returns the value to the previous window in the specified position. The
Moderator is talking about uploadify this plugin?
------Solution--------------------
The second window:
!--? php
...
Echo ';
?
Window 1:
function abc () {
...
}
is this OK?