weixin_33709219 2015-01-28 08:06 采纳率: 0%
浏览 21

带有php和ajax的HTML <form>

I would like to know in what way passing data from a form to a php file is best?

I have used ajax to retrieve a page and load into a div tag on the "master page", now there is a form on this sub page that needs to upload a file. So far i have got it to upload and the form posts to a new .php file where the data is handled.

When the data is handled and the page then navigates back to the master page, i noticed upon form submission when it is directed to the new php page, it shows blank white while the code executed and then redirects to the master page, my question is:

In order to eliminate the white page while code is being executed, is there a better way to go about this or is this sufficient and what can i do to not show the white page?

Thanks in advance.

Warren

  • 写回答

2条回答 默认 最新

  • weixin_33709364 2015-01-28 08:13
    关注

    You could use ajax to upload the files without submitting the form, for example by using a script like this :

    http://www.a2zwebhelp.com/multiple-file-upload

    评论

报告相同问题?