I have a modal in an html page as shown below:
<!-- Modal -->
<div class="modal fade" id="uploadImages" role="dialog">
<div class="modal-dialog modal-lg">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Upload Scanned Images</h4>
</div>
<div class="modal-body">
<form action="upload.php" method="POST" enctype="multipart/form-data">
Select file : <input type='file' name='U_FILES[]' id='file' class='form-control' multiple=""><br>
<input type='submit' class='btn btn-info' value='Submit' id='upload' name = 'submit'>
</form>
</div>
<div class="modal-footer">
<p>Only jpeg, png, bmp and tiff Images are allowed to be uploaded</p>
</div>
</div>
</div>
</div>
I also have a php file where I am outputting whether an output has been successful or not through an echo.
for ($i = 0; $i < count($response); $i++) {
echo $response[$i]["fileName"]." - ".$response[$i]["msg"]."<br/>";
}
Is it possible that instead of an echo I pass the response to the same modal body?