Помощник
|
Ребята, помогите со вставкой кода обратной связи плиз |
al_ks
|
Сообщение
#1
|
||
|
|
||
|
|||
Zippovich |
3.8.2011, 2:11;
Ответить: Zippovich
Сообщение
#2
|
|
Если его нет, Вам его нужно создать и сделать в нем php обработку и отправку формы на email
|
|
|
adlic |
3.8.2011, 2:12;
Ответить: adlic
Сообщение
#3
|
|
еще имена инпутов(name="name", name="fromMail" и т.д.) нужно сделать как на "нынедействующем"
|
|
|
al_ks
|
Сообщение
#4
|
|
Если его нет, Вам его нужно создать и сделать в нем php обработку и отправку формы на email Спасибо. Его надо делать с нуля, или можно воспользоваться шаблоном, либо попробовать переделать тот, что у меня есть? Вот код того, что у меня есть feedback.php [PHP] <?php /* CHFEEDBACK.PHP Feedback Form PHP Script Ver 2.15.0 Generated by thesitewizard.com's Feedback Form Wizard 2.15.0. Copyright 2000-2009 by Christopher Heng. All rights reserved. thesitewizard is a trademark of Christopher Heng. Get the latest version, free, from: http://www.thesitewizard.com/wizards/feedbackform.shtml You can read the Frequently Asked Questions (FAQ) at: http://www.thesitewizard.com/wizards/faq.shtml I can be contacted at: http://www.thesitewizard.com/feedback.php Note that I do not normally respond to questions that have already been answered in the FAQ, so *please* read the FAQ. LICENCE TERMS 1. You may use this script on your website, with or without modifications, free of charge. 2. You may NOT distribute or republish this script, whether modified or not. The script can only be distributed by the author, Christopher Heng. 3. THE SCRIPT AND ITS DOCUMENTATION ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. YOU AGREE TO BEAR ALL RISKS AND LIABILITIES ARISING FROM THE USE OF THE SCRIPT, ITS DOCUMENTATION AND THE INFORMATION PROVIDED BY THE SCRIPTS AND THE DOCUMENTATION. If you cannot agree to any of the above conditions, you may not use the script. Although it is not required, I would be most grateful if you could also link to thesitewizard.com at: http://www.thesitewizard.com/ */ // ------------- CONFIGURABLE SECTION ------------------------ // $mailto - set to the email address you want the form // sent to, eg //$mailto = "letter@photograph.od.ua" ; $mailto = 'letter@photograph.od.ua' ; // $subject - set to the Subject line of the email, eg //$subject = "Feedback Form" ; $subject = "Feedback Form" ; // the pages to be displayed, eg //$formurl = "http://www.example.com/feedback.html" ; //$errorurl = "http://www.example.com/error.html" ; //$thankyouurl = "http://www.example.com/thankyou.html" ; $formurl = "http://photograph.od.ua/about.html" ; $errorurl = "http://photograph.od.ua/error.html" ; $thankyouurl = "http://photograph.od.ua/mail.html" ; $email_is_required = 1; $name_is_required = 1; $comments_is_required = 1; $uself = 0; $use_envsender = 0; $use_sendmailfrom = 0; $use_webmaster_email_for_from = 0; $use_utf8 = 1; $my_recaptcha_private_key = '' ; // -------------------- END OF CONFIGURABLE SECTION --------------- $headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ; $content_type = (!isset( $use_utf8 ) || ($use_utf8 == 0)) ? 'Content-Type: text/plain; charset="iso-8859-1"' : 'Content-Type: text/plain; charset="utf-8"' ; if (!isset( $use_envsender )) { $use_envsender = 0 ; } if (isset( $use_sendmailfrom ) && $use_sendmailfrom) { ini_set( 'sendmail_from', $mailto ); } $envsender = "-f$mailto" ; $fullname = (isset($_POST['fullname']))? $_POST['fullname'] : $_POST['name'] ; $email = $_POST['email'] ; $comments = $_POST['comments'] ; $http_referrer = getenv( "HTTP_REFERER" ); if (!isset($_POST['email'])) { header( "Location: $formurl" ); exit ; } if (($email_is_required && (empty($email) || !preg_match('/@/', $email))) || ($name_is_required && empty($fullname)) || ($comments_is_required && empty($comments))) { header( "Location: $errorurl" ); exit ; } if ( preg_match( "/[\r\n]/", $fullname ) || preg_match( "/[\r\n]/", $email ) ) { header( "Location: $errorurl" ); exit ; } if (strlen( $my_recaptcha_private_key )) { require_once( 'recaptchalib.php' ); $resp = recaptcha_check_answer ( $my_recaptcha_private_key, $_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'] ); if (!$resp->is_valid) { header( "Location: $errorurl" ); exit ; } } if (empty($email)) { $email = $mailto ; } $fromemail = (!isset( $use_webmaster_email_for_from ) || ($use_webmaster_email_for_from == 0)) ? $email : $mailto ; if (function_exists( 'get_magic_quotes_gpc' ) && get_magic_quotes_gpc()) { $comments = stripslashes( $comments ); } $messageproper = "This message was sent from:\n" . "$http_referrer\n" . "------------------------------------------------------------\n" . "Name of sender: $fullname\n" . "Email of sender: $email\n" . "------------------------- COMMENTS -------------------------\n\n" . $comments . "\n\n------------------------------------------------------------\n" ; $headers = "From: \"$fullname\" <$fromemail>" . $headersep . "Reply-To: \"$fullname\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.15.0" . $headersep . 'MIME-Version: 1.0' . $headersep . $content_type ; if ($use_envsender) { mail($mailto, $subject, $messageproper, $headers, $envsender ); } else { mail($mailto, $subject, $messageproper, $headers ); } header( "Location: $thankyouurl" ); exit ; ?> [/PHP] Или надо подыскать что-то получше? |
|
|
al_ks
|
Сообщение
#5
|
|
|
|
|
adlic |
3.8.2011, 10:53;
Ответить: adlic
Сообщение
#6
|
|
они тут:
<form id="commentForm" method="post" class="cmxform" action="mail-contact.php"> <h5>Your Name:</h5> <input name="name" class="required" type="text" /> <h5>Your E-mail:</h5> <input name="fromMail" type="text" class="required email" /> <h5>Comment:</h5> <textarea name="message" rows="1" cols="1" class="required"></textarea><br /> <input name="Submit" type="submit" class="buttonsend" value="Send" /> </form> Количество и имена текстовых полей, а также кнопки отправить, должно совпадать со старым, тогда старый обработчик подойдет и под новую форму. Стили при этом не пострадают. |
|
|
al_ks
|
Сообщение
#7
|
|
|
Ухты, получилось вроде! :)
Спасибище!
|
|
|
||
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Помогите вспомнить рекламного бота Телеграм для обмена рекламой | 0 | Mixatraider | 725 | 21.2.2024, 23:42 автор: Mixatraider |
|
Помогите рещить проблему с монитором. Почему низкое разрешение при подключении монитора через displayport? |
0 | Levels | 1702 | 11.12.2020, 0:48 автор: Levels |
|
Принимаю заказы на копирайтинг, рерайтинг. Стабильно работаю, всегда на связи Нужен автор текстов, копирайтер? Обращайтесь |
14 | KriptoFin | 8092 | 22.9.2020, 18:07 автор: mrSana |
|
Нужен простой лендинг с формой обратной связи | 10 | Kuzzma | 2598 | 11.9.2020, 21:33 автор: Kuzzma |
|
Помогите кто нибудь получить партнерку Росбанк! | 7 | heisenberg_mw | 2340 | 7.8.2020, 9:28 автор: heisenberg_mw |
Текстовая версия | Сейчас: 19.4.2024, 9:25 |