Strict Standards: Resource ID#25 used as offset, casting to integer (25) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401

Strict Standards: Resource ID#27 used as offset, casting to integer (27) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401

Strict Standards: Resource ID#28 used as offset, casting to integer (28) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/fm.class.php on line 401
ТвойWeb :: Версия для печати :: Вставка формы на страницу с ­ помощью JS
ТвойWeb » WebMaster класс » PHP/Perl » Вставка формы на страницу с ­ помощью JS

Страниц (1): [1]
 

1. forty - 01 Мая, 2005 - 13:44:22 - перейти к сообщению
Праверте Пожалуйста (Професионалы)Выпьем!.
Правильно ли я написал 2 часть скрипта отправки формы.?

Первая часть находитца здесь
http://tvoyweb.ru/forums/topic.p...mp;v=#1114957127


mail.php

PHP:

<?php
$newlocation = "sended.htm";
$sendmail = "test@test.ru";
$subject = "$tema";
$from="$mail";
$headers="Content-Type: text/html; charset=windows-1251\n";
$headers.="From: $from\nX-Mailer:";
$AdminMessage = "Тема: $tema \n<BR>";
$AdminMessage .= "<BR><font color=green>От:</font><BR> $name\n<BR>";
$AdminMessage .= "<BR><font color=green>E-mail:</font><BR> $mail\n<BR>";
$AdminMessage .= "<BR><font color=green>Сообщение:</font>\n";
$AdminMessage .= "<BR>$text<BR><BR>";
mail($sendmail, $subject, $AdminMessage, $headers);
header("Location: ".$newlocation);
?>



Помогите, пожалуйста, разобраться, правильно ли я написал.
PS: ( sended.htm ) это страница каторое открываетца после отправки
сообщения.
2. Леголегс - 02 Мая, 2005 - 16:15:42 - перейти к сообщению
И зачем спрашивать, forty, поэкспериментируй!

Форум на AlfaSpace.NET


Powered by ExBB
ExBB FM 1.0 RC1 by TvoyWeb.ru
InvisionExBB Style converted by Markus®

[Script Execution time: 0.0328]     [ Gzipped ]



Notice: ob_end_flush(): failed to send buffer of ob_gzhandler (1) in /home/tvoyweb/domains/tvoyweb.ru/public_html/forums/include/page_tail.php on line 33