Form upload file, how to pop up a new window called PHP processing, and return to the original window

Source: Internet
Author: User
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?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.