你好,我试图上传一个图像,它完美的工作,但我希望用户知道该图像已被上传,我怎样才能使这个echo.php上的回声出现在表格所在的回声div中?
的index.html
<div id ="echo"><form action = "upload.php" id = "bildUppladdning" method = "post" enctype = "multipart/form-data" target = "hiddenFrame">
<input type = "file" name = "file" id = "fileToUpload" accept="image/*" style = "display:none" onchange="form.submit()">
</form></div>
upload.php的
echo '<div id = "scs"> Your image was succesfully uploaded</div>';
我是愚蠢的还是比我想的更容易? (brainlag)所以我加入了这个网站!谢谢你的时间!