0
In my code I have this form on HTML but in giving Ubmit in the form mine POST of PHP does not receive the image input.
code HTML down below:
<form action="/news/createsubmit" method="post" enctype="multipart/form-data">
<div class="col-sm-8">
<div class="form-group row">
<div class="custom-file">
<input type="file" name="pic" accept="image/*" id="customFile" required>
<label class="custom-file-label" for="customFile">Choose an Image</label>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="form-group row">
<label for="colFormLabel" class="col-sm-0 col-form-label"></label>
<input type="text" name="author" class="form-control" id="colFormLabel" placeholder="Autor" required>
</div>
</div>
</form>
Below follows print of $_POST in PHP:
Array
(
[author] => dd
)
Select your PHP code that receives the form ?
– Leo