Форум Flasher.ru
Ближайшие курсы в Школе RealTime
Список интенсивных курсов: [см.]  
  
Специальные предложения: [см.]  
  
 
Блоги Правила Справка Пользователи Календарь Сообщения за день
 

Вернуться   Форум Flasher.ru > Flash > Серверные технологии и Flash

Версия для печати  Отправить по электронной почте    « Предыдущая тема | Следующая тема »  
Опции темы Опции просмотра
 
Создать новую тему Ответ
Старый 28.10.2008, 18:42
chamber вне форума Посмотреть профиль Отправить личное сообщение для chamber Найти все сообщения от chamber
  № 1  
Ответить с цитированием
chamber

Регистрация: Feb 2007
Сообщений: 13
По умолчанию Форма отправки вместо русского языка отправляет "п п п пЁ"

Помогите плз сделать русский язык..

AS:
Цитата:
fscommand("allowscale", "false");
//
// set some variables
//
mailform = "mailform.php";
confirm = "Спасибо! На ваш email отправленно письмо с подтверждением.";
action = "send";
error1 = "Ошибка";
error2 = "Ошибка";



//
// and focus on variable fname1
//
Selection.setFocus("name1");
//
// validate email function
//
function validate(address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".")) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
// form check
//
function formcheck() {
if ((((email == null)) || (email.length<1)) || (email == "Введите правильный email")) {
email = error1;
action = "";
}
if (!validate(email)) {
email = error1;
action = "";
}
if ((name1 == null) || (name1 == "")) {
name1 = error2;
action = "";
}
if ((company == null) || (company == "")) {
company = error2;
action = "";
}
if ((tel == null) || (tel == "")) {
tel = error2;
action = "";
}
if ((comments == null) || (comments == "")) {
comments = error2;
action = "";
}
if ((validate(email)) && (email != error1) && (name1 != "") && (name1 != error2) && (company!= "") && (company != error2)&&(tel!= "") && (tel != error2)&& (comments != "") && (comments != error2)) {
action = "send";
loadVariablesNum(mailform, 0, "POST");
gotoAndPlay("wait");
}
}


input1 = "Имя";
input2 = "Email";
input3 = "Компания";
input4 = "Контактный телефон";
input5 = "Сообщение";

name1 = input1;
email = input2;
company = input3;
tel = input4;
comments = input5;

this.onEnterFrame = function() {
input1.onSetFocus = function() {
if (name1 == input1) {
name1 = "";
}
};
input1.onKillFocus = function() {
if (name1 == "") {
name1 = input1;
}
};
input2.onSetFocus = function() {
if (email == input1) {
email = "";
}
};
input2.onKillFocus = function() {
if (email == "") {
email = input1;
}
};
input3.onSetFocus = function() {
if (comments == input3) {
comments = "";
}
};
input3.onKillFocus = function() {
if (comments == "") {
comments = input3;
}
};
};

stop();


PHP:
Цитата:
<?

$adminaddress = "chamber.design@mail.ru";
$siteaddress ="http://alkar.net/";
$sitename = "ssss";

//No need to change anything below ...
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS['action'] ;
$email = $HTTP_POST_VARS['email'] ;
$name = $HTTP_POST_VARS['name'] ;
$company = $HTTP_POST_VARS['company'] ;
$tel = $HTTP_POST_VARS['tel'] ;
$comments = $HTTP_POST_VARS['comments'] ;

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address

if ($action == "send") {
//
mail ("$adminaddress","Info Request",
"A visitor at $sitename has left the following information\n
Name: $name
Email: $email\n
company: $company\n
Tel: $tel\n
The visitor commented:
------------------------------
$comments

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress" ) ;

//This sends a confirmation to your visitor
mail ("$email","Thank You for visiting $sitename",
"Hi $name,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress") ;

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you. You will receive a confirmation email shortly.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;
} //


?>

Создать новую тему Ответ Часовой пояс GMT +4, время: 05:38.
Быстрый переход
  « Предыдущая тема | Следующая тема »  

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


 


Часовой пояс GMT +4, время: 05:38.


Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.