there's a similar question about this but honestly i still don't understand how it works.
here is the code:
<div class="fileupload fileupload-new" data-provides="fileupload">
<div class="fileupload-preview thumbnail" style="width: 200px; height: 150px;">
</div>
<div>
<span class="btn btn-default btn-file"><span class="fileupload-new">Select image</span>
<span class="fileupload-exists">Change</span><input type="file" name="myimage" accept="image/*"></span>
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
</div>
</div>
my questions is: 1.) how will i pass the image using $_POST[] or $_FILES[] ?
2.) does the <input type="file" name="myimage" accept="image/*">
handles both when the user clicks the "Select Image" and "Change"?
3.) or what way can i pass the image and upload it on the server using PHP?