How to display or preview a uploaded image after submitted in PHP without save to database?

前端 未结 4 1312
北恋
北恋 2021-01-19 07:07

There are actually 2 page involve in my project.The 1st page is a form that to submit the uploaded image into 2nd page based on action=\"2page.php\" and will di

4条回答
  •  离开以前
    2021-01-19 07:28

    send your file to a php script with jQuery and return the temp name and path to jQuery and put the response on a and then if the user clicks some button insert that temporal image to your database with a new jQuery $.post() to another php script so one php to get the file and another to insert it on your db

    This link will help you sending files with AJAX or jQuery

提交回复
热议问题