I have next form:
echo "<br><form action ='maketext.php' method='post' enctype='multipart/form-data'>
<br>
$table <br><br><br>
<b>$subject</b> <br>
Сообщение: <b>$message</b> <br>
<input name='userfile[]' type='file' /><br />
<input name='userfile[]' type='file' /><br />
<input name='userfile[]' type='file' /><br />
<input type ='submit' name ='Send' size = '10' value = 'Send'>
<input type ='hidden' name ='subject' value=$subject>
<input type ='hidden' name ='sms' value=$flagSms>
<input type ='hidden' name ='email' value=$flagEmail>
<input type ='hidden' name ='message' value=$message>
</form>";
I havent problems with files, but I have a problem with encoding of $subject
and other variables. I think its because enctype='multipart/form-data'
. It really pass and variables and files through one form?