i've created some code
<input class="upload" type="file" value="choose" name="files[]" multiple="multiple" required>
';
$ghj = count(files);
echo '
<input type="hidden" name="ghj" value="'.$ghj.'">
<input type="submit" name="send" class="check-button" value="check">
and need really bad to know before submitting how many files was chosen. And it has to be in php variable... i tried everything i know and nothing is working. Could anybody help me?