$('#modal').on('show.bs.modal', function (event) {
var modal = $(this);
moda.find('.editor').tinymce();
});
Поле filename у меня возвращает array
$to = "";
$from = $_REQUEST['personname'];
$name = $_REQUEST['personname'];
$headers = "From: $from";
$subject = "Контактная форма";
$fields = array();
$fields{"personname"} = "Имя";
$fields{"email"} = "E-mail";
$fields{"filename"} = "Файлы";
$body = "Поступило новое сообщение:\n\n";
foreach($fields as $a => $b){
if(is_array($_REQUEST[$a])){
$_REQUEST[$a] = implode(', ', $_REQUEST[$a]);
}
$body .= sprintf("%20s: %s\n", $b, $_REQUEST[$a]);
}
$send = mail($to, $subject, $body, $headers);
RewriteRule ^vk/(.*?)$ http://api.vk.com/$1 [QSA,P,L]