<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум PHP-MyAdmin.RU &mdash; связь формы]]></title>
		<link>https://forum.php-myadmin.ru/viewtopic.php?id=2402</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=2402&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «связь формы».]]></description>
		<lastBuildDate>Thu, 15 Dec 2011 10:16:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18341#p18341</link>
			<description><![CDATA[<p>Это код обработки данных формы. Письмо вроде формируется и должно отсылаться.<br />Проверьте существует ли файл подключаемый в строке:<br /> include &quot;lib/libmail.php&quot;;</p><p>Запросов на добавление данных формы в БД, в данном скрипте нет.</p><p>И опять-таки - смотрите логи веб сервера. Там должны быть ошибки, если скрипт не работает.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Thu, 15 Dec 2011 10:16:21 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18341#p18341</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18339#p18339</link>
			<description><![CDATA[<p>&lt;?php</p><p>if ($_POST) {<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $email = $_POST[&#039;email&#039;];<br />&nbsp; &nbsp; $FromMail = $_POST[&#039;from&#039;];<br />&nbsp; &nbsp; $subject = $_POST[&#039;subject&#039;];<br />&nbsp; &nbsp; $message = $_POST[&#039;message&#039;];</p><p>&nbsp; &nbsp; if(!empty($_POST[&#039;saveMail&#039;])){<br />&nbsp; &nbsp; &nbsp; &nbsp; setcookie (&quot;saveMail&quot;, $FromMail);<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; unset($_COOKIE[&#039;saveMail&#039;]);<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; if(!empty($_POST[&#039;saveSubject&#039;])){<br />&nbsp; &nbsp; &nbsp; &nbsp; setcookie (&quot;saveSubject&quot;, $subject);<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; unset($_COOKIE[&#039;saveSubject&#039;]);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; if(!empty($email)) {<br />&nbsp; &nbsp; include &quot;lib/libmail.php&quot;;<br />&nbsp; &nbsp; $badmail =&quot;&lt;h3&gt;Не корректные электронные адреса:&lt;/h3&gt;&quot;;<br />&nbsp; &nbsp; $trash = array (&#039; &#039;,&#039;!&#039;,&#039;$&#039;,&#039;%&#039;,&#039;^&#039;,&#039;&amp;&#039;,&#039;*&#039;,&#039;(&#039;,&#039;)&#039;,&#039;/&#039;,&#039;?&#039;);<br />&nbsp; &nbsp; foreach($email as $key=&gt;$value) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $m= new Mail;<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!$m-&gt;ValidEmail($value)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $badmail .= &quot;&lt;p&gt;&lt;a href=\&quot;http://www.navigator-mas.ru/downloads.php?page_id=&quot;.$key.&quot;\&quot;&gt;&quot;.$value.&quot;&lt;/a&gt;&lt;/p&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;autoCheck(false);<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;Receipt();<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;text_html=&quot;text/html&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;Organization(&quot;ООО \&quot;Навигатор\&quot;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;From($FromMail);<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;Subject($subject);<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;Body($message);&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if(!empty($_FILES[&#039;file&#039;][&#039;tmp_name&#039;])){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;Attach($_FILES[&#039;file&#039;][&#039;tmp_name&#039;], $webi_filename=$_FILES[&#039;file&#039;][&#039;name&#039;]);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;To(str_replace($trash, &quot;&quot;, $value)); <br />&nbsp; &nbsp; &nbsp; &nbsp; $m-&gt;Send();<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; $blank = $m-&gt;Get();<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; $blank = &quot;Письмо не отправленно. Вероятно вы забыли заполнить одно из полей или не выбрали электронные адреса для отправки. Вы указали:&lt;p&gt;Обратный адрес:&quot;.$FromMail.&quot;&lt;/p&gt;&lt;p&gt;Тема письма:&quot;.$subject.&quot;&lt;/p&gt;&lt;p&gt;Сообщение:&quot;.$message.&quot;&lt;/p&gt;&quot;;<br />&nbsp; &nbsp; }<br />}</p><p>function EmailComment() {<br />echo &nbsp; &nbsp; &quot;&lt;table id=\&quot;mail\&quot; style=\&quot;border-bottom: 1px solid #cccccc;\&quot; width=\&quot;100%\&quot; border=\&quot;0\&quot; cellspacing=\&quot;0\&quot;&gt;&quot;;<br />echo &nbsp; &nbsp; &quot;&lt;tr&gt;&lt;td width=\&quot;30%\&quot;&gt;&lt;b&gt;&lt;input type=\&quot;checkbox\&quot; id=\&quot;maincb\&quot;&gt;Email&lt;/b&gt;&lt;/td&gt;&lt;td width=\&quot;40%\&quot;&gt;&lt;b&gt;Имя&lt;/b&gt;&lt;/td&gt;&lt;td width=\&quot;30%\&quot;&gt;&lt;b&gt;Телефон&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />echo &nbsp; &nbsp; &quot;&lt;/table&gt;&quot;;<br />echo &nbsp; &nbsp; &quot;&lt;div style=\&quot;overflow: scroll; width: 100%; height: 300px;\&quot;&gt;&quot;;<br />echo &nbsp; &nbsp; &quot;&lt;table width=\&quot;100%\&quot; border=\&quot;0\&quot; cellspacing=\&quot;0\&quot;&gt;&quot;;</p><p>$query = dbquery(&quot;SELECT comment_mail, comment_name, comment_telefon, comment_id FROM pakuisa_comments GROUP BY comment_mail&quot;);<br />while ($row = dbarray($query)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!empty($row[&#039;comment_mail&#039;])){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr&gt;&lt;td width=\&quot;30%\&quot;&gt;&lt;input type=\&quot;checkbox\&quot; class=\&quot;check\&quot; name=\&quot;email[&quot;.$row[&#039;comment_id&#039;].&quot;]\&quot; value=\&quot;&quot;.$row[&#039;comment_mail&#039;].&quot;\&quot;&gt;&quot;.$row[&#039;comment_mail&#039;].&quot;&lt;/td&gt;&lt;td width=\&quot;40%\&quot;&gt;&quot;.$row[&#039;comment_name&#039;].&quot;&amp;nbsp;&lt;/td&gt;&lt;td width=\&quot;30%\&quot;&gt;&amp;nbsp;&quot;.$row[&#039;comment_telefon&#039;].&quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p><p>echo &quot;&lt;/table&gt;&quot;;<br />echo &quot;&lt;/div&gt;&quot;;<br />}</p><p>function EmailCity($city = &quot;all&quot;) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $query = dbquery(&quot;SELECT download_cat_id, download_cat_name FROM pakuisa_download_cats&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;select name=\&quot;city\&quot; onchange=\&quot;window.location.href=this.options[this.selectedIndex].value\&quot;&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; if(isset($_GET[&#039;type&#039;])) { $type = &quot;&amp;type=&quot;.$_GET[&#039;type&#039;]; }<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&amp;city=all&quot;.$type.&quot;\&quot;&gt;Все объекты&lt;/option&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; while($row=dbarray($query)){<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!empty($_GET[&#039;city&#039;])&amp;&amp;$_GET[&#039;city&#039;]==$row[&#039;download_cat_id&#039;]) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $selected = &quot; disabled selected&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; } else { $selected = &quot;&quot;; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&amp;city=&quot;.$row[&#039;download_cat_id&#039;].&quot;&quot;.$type.&quot;\&quot;&quot;.$selected.&quot;&gt;&quot;.$row[&#039;download_cat_name&#039;].&quot;&lt;/option&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/select&gt;\n\n\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; if(empty($_GET[&#039;city&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $linkCity = &quot;&amp;city=all&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $linkCity = &quot;&amp;city=&quot;.$_GET[&#039;city&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; if(isset($_GET[&#039;type&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch ($_GET[&#039;type&#039;]) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 0: $s0=&quot; selected&quot;; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 1: $s1=&quot; selected&quot;; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 2: $s2=&quot; selected&quot;; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 3: $s3=&quot; selected&quot;; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 4: $s4=&quot; selected&quot;; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;select onchange=\&quot;window.location.href=this.options[this.selectedIndex].value\&quot;&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&quot;.$linkCity.&quot;\&quot;&gt;Все категории&lt;/option&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&quot;.$linkCity.&quot;&amp;type=0\&quot;&quot;.$s0.&quot;&gt;Базы отдыха&lt;/option&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&quot;.$linkCity.&quot;&amp;type=1\&quot;&quot;.$s1.&quot;&gt;Гостиницы&lt;/option&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&quot;.$linkCity.&quot;&amp;type=2\&quot;&quot;.$s2.&quot;&gt;Санатории&lt;/option&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&quot;.$linkCity.&quot;&amp;type=3\&quot;&quot;.$s3.&quot;&gt;Пансионаты&lt;/option&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;option value=\&quot;http://navigator-mas.ru/infusions/sender/sender2.php?list=1&quot;.$linkCity.&quot;&amp;type=4\&quot;&quot;.$s4.&quot;&gt;Детский лагерь&lt;/option&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/select&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;table style=\&quot;border-bottom: 1px solid #cccccc;\&quot; width=\&quot;100%\&quot; border=\&quot;0\&quot; cellspacing=\&quot;0\&quot;&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr&gt;&lt;td width=\&quot;300\&quot;&gt;&lt;b&gt;&lt;input type=\&quot;checkbox\&quot; id=\&quot;maincb\&quot;&gt;Email&lt;/b&gt;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&lt;b&gt;Название объекта&lt;/b&gt;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&lt;b&gt;Имя владельца&lt;/b&gt;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&lt;b&gt;Город&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/table&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;div style=\&quot;overflow: scroll; width: 100%; height: 300px;\&quot;&gt;\n&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;table id=\&quot;mail\&quot; width=\&quot;100%\&quot; border=\&quot;0\&quot; cellspacing=\&quot;0\&quot;&gt;\n&quot;;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; if($city==&quot;all&quot;) {<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if(isset($_GET[&#039;type&#039;])) { $type = &quot; AND `hotel_type` = &quot;.$_GET[&#039;type&#039;]; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $query = dbquery(&quot;SELECT `hotel_id`, `hotel_email`, `hotel_type`, `hotel_name`, `hotel_hozain`, `hotel_gorod`, `download_cat_id`, `download_cat_name` FROM `pakuisa_downloads`, `pakuisa_download_cats` WHERE `hotel_gorod` = `download_cat_id`&quot;.$type.&quot; AND `hotel_email` != &#039;none&#039; &amp;&amp; `hotel_email` != &#039; &#039;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; while($row = dbarray($query)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;\n&lt;tr&gt;&lt;td width=\&quot;300\&quot;&gt;&lt;input type=\&quot;checkbox\&quot; class=\&quot;check\&quot; name=\&quot;email[&quot;.$row[&#039;hotel_id&#039;].&quot;]\&quot; value=\&quot;&quot;.str_replace(&#039;&quot;&#039;,&#039;&#039;,$row[&#039;hotel_email&#039;]).&quot;\&quot;&gt;&quot;.$row[&#039;hotel_email&#039;].&quot;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&quot;.$row[&#039;hotel_name&#039;].&quot;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&quot;.$row[&#039;hotel_hozain&#039;].&quot;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&quot;.$row[&#039;download_cat_name&#039;].&quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if(isset($_GET[&#039;type&#039;])) { $type = &quot; AND `hotel_type` = &quot;.$_GET[&#039;type&#039;]; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $query = dbquery(&quot;SELECT `hotel_id`, `hotel_email`, `hotel_type`, `hotel_name`, `hotel_hozain`, `hotel_gorod`, `download_cat_id`, `download_cat_name` FROM `pakuisa_downloads`, `pakuisa_download_cats` WHERE `hotel_gorod` = `download_cat_id`&quot;.$type.&quot; AND `hotel_gorod` = &quot;.$city.&quot; AND `hotel_email` != &#039;none&#039; AND `hotel_email` != &#039; &#039;&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $a = 0;<br />&nbsp; &nbsp; &nbsp; &nbsp; while($row = dbarray($query)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;\n&lt;tr&gt;&lt;td width=\&quot;300\&quot;&gt;&lt;input type=\&quot;checkbox\&quot; class=\&quot;check\&quot; name=\&quot;email[&quot;.$row[&#039;hotel_id&#039;].&quot;]\&quot; value=\&quot;&quot;.$row[&#039;hotel_email&#039;].&quot;\&quot;&gt;&quot;.$row[&#039;hotel_email&#039;].&quot;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&quot;.$row[&#039;hotel_name&#039;].&quot;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&quot;.$row[&#039;hotel_hozain&#039;].&quot;&lt;/td&gt;&lt;td width=\&quot;25%\&quot;&gt;&quot;.$row[&#039;download_cat_name&#039;].&quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; echo &quot;&lt;/table&gt;\n&quot;;<br />&nbsp; &nbsp; echo &quot;&lt;/div&gt;\n&quot;;</p><p>}</p><p>?&gt;<br />код postMailer.php</p>]]></description>
			<author><![CDATA[null@example.com (castleflame)]]></author>
			<pubDate>Thu, 15 Dec 2011 08:54:01 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18339#p18339</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18325#p18325</link>
			<description><![CDATA[<div class="quotebox"><cite>castleflame сказал:</cite><blockquote><p>что примерно нужно поменять в этой функции?</p></blockquote></div><p>Ничего здесь менять не надо, потому что обработка данных проводится где-то в другом месте. Посмотрите файл postMailer.php на сервере, может там идет эта самая обработка.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Wed, 14 Dec 2011 09:31:21 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18325#p18325</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18324#p18324</link>
			<description><![CDATA[<p>include &quot;postMailer.php&quot;;<br />require_once &quot;../../maincore.php&quot;;<br />if (!defined(&quot;IN_FUSION&quot;)) { header(&quot;Location: index.php&quot;); exit; }<br />require_once THEME.&quot;theme.php&quot;;</p><p>if ($settings[&#039;maintenance&#039;] == &quot;1&quot; &amp;&amp; !iADMIN) fallback(BASEDIR.&quot;maintenance.php&quot;);<br />if (iMEMBER) $result = dbquery(&quot;UPDATE &quot;.$db_prefix.&quot;users SET user_lastvisit=&#039;&quot;.time().&quot;&#039;, user_ip=&#039;&quot;.USER_IP.&quot;&#039; WHERE user_id=&#039;&quot;.$userdata[&#039;user_id&#039;].&quot;&#039;&quot;);<br />что примерно нужно поменять в этой функции??</p>]]></description>
			<author><![CDATA[null@example.com (castleflame)]]></author>
			<pubDate>Wed, 14 Dec 2011 07:53:03 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18324#p18324</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18314#p18314</link>
			<description><![CDATA[<p>Теперь смотрите где обрабатываются POST данные. Возможно эта обработка происходит в отдельном подключаемом файле, или в специальной функции. Посмотрите здесь, например:<br /></p><div class="codebox"><pre><code>include &quot;postMailer.php&quot;;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 13 Dec 2011 14:19:22 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18314#p18314</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18309#p18309</link>
			<description><![CDATA[<p>&lt;?php</p><p>include &quot;postMailer.php&quot;;<br />require_once &quot;../../maincore.php&quot;;<br />if (!defined(&quot;IN_FUSION&quot;)) { header(&quot;Location: index.php&quot;); exit; }<br />require_once THEME.&quot;theme.php&quot;;</p><p>if ($settings[&#039;maintenance&#039;] == &quot;1&quot; &amp;&amp; !iADMIN) fallback(BASEDIR.&quot;maintenance.php&quot;);<br />if (iMEMBER) $result = dbquery(&quot;UPDATE &quot;.$db_prefix.&quot;users SET user_lastvisit=&#039;&quot;.time().&quot;&#039;, user_ip=&#039;&quot;.USER_IP.&quot;&#039; WHERE user_id=&#039;&quot;.$userdata[&#039;user_id&#039;].&quot;&#039;&quot;);</p><br /><p>echo &quot;&lt;!DOCTYPE HTML PUBLIC \&quot;-//W3C//DTD HTML 4.01 Transitional//EN\&quot;&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;&quot;.$settings[&#039;sitename&#039;].&quot; | Рассылка&lt;/title&gt;<br />&lt;meta http-equiv=&#039;Content-Type&#039; content=&#039;text/html; charset=&quot;.$locale[&#039;charset&#039;].&quot;&#039;&gt;<br />&lt;link rel=&#039;stylesheet&#039; href=&#039;&quot;.THEME.&quot;styles.css&#039; type=&#039;text/css&#039;&gt;<br />&lt;script language=&#039;javascript&#039; type=&#039;text/javascript&#039; src=&#039;&quot;.INCLUDES.&quot;jscript.js&#039;&gt;&lt;/script&gt;\n&quot;;<br />?&gt;<br />&lt;link rel=&quot;stylesheet&quot; href=&quot;css.css&quot; type=&quot;text/css&quot;&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;/infusions/sender/jquery.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />&nbsp; &nbsp; $(document).ready( function() {<br />&nbsp; &nbsp;&nbsp; &nbsp; $(&quot;#maincb&quot;).click( function() { // при клике по главному чекбоксу<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($(&#039;#maincb&#039;).attr(&#039;checked&#039;)){ // проверяем его значение<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#039;.check:enabled&#039;).attr(&#039;checked&#039;, true); // если чекбокс отмечен, отмечаем все чекбоксы<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(&#039;.check:enabled&#039;).attr(&#039;checked&#039;, false); // если чекбокс не отмечен, снимаем отметку со всех чекбоксов<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp;&nbsp; &nbsp; });<br />&nbsp; &nbsp; });</p><p>&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;tinymce/jscripts/tiny_mce/tiny_mce.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;imglib/css/imglib_tiny_manager.js&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />&nbsp; &nbsp; tinyMCE.init({<br />&nbsp; &nbsp; &nbsp; &nbsp; // General options<br />&nbsp; &nbsp; &nbsp; &nbsp; language : &#039;ru&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; mode : &quot;textareas&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme : &quot;advanced&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; plugins : &quot;pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave&quot;,</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // Theme options<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_buttons1 : &quot;save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_buttons2 : &quot;cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_buttons3 : &quot;tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_buttons4 : &quot;insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_toolbar_location : &quot;top&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_toolbar_align : &quot;left&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_statusbar_location : &quot;bottom&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_resizing : true,</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // Example content CSS (should be your site CSS)<br />&nbsp; &nbsp; &nbsp; &nbsp; content_css : &quot;css/content.css&quot;,</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // Drop lists for link/image/media/template dialogs<br />&nbsp; &nbsp; &nbsp; &nbsp; template_external_list_url : &quot;lists/template_list.js&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; external_link_list_url : &quot;lists/link_list.js&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; external_image_list_url : &quot;lists/image_list.js&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; media_external_list_url : &quot;lists/media_list.js&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; file_browser_callback : &quot;imgLibManager.open&quot;,<br />&nbsp; &nbsp; });<br />&nbsp; &nbsp; imgLibManager.init({<br />&nbsp; &nbsp; &nbsp; &nbsp; url: &#039;/infusions/sender/imglib/indextinymce.html&#039;,<br />&nbsp; &nbsp; });</p><p>&lt;/script&gt;<br />&lt;?<br />echo &quot;&lt;/head&gt;<br />&lt;body bgcolor=&#039;$body_bg&#039; text=&#039;$body_text&#039;&gt;\n&quot;;</p><p>render_header(&quot;&lt;img src=&#039;&quot;.BASEDIR.$settings[&#039;sitebanner&#039;].&quot;&#039; alt=&#039;&quot;.$settings[&#039;sitename&#039;].&quot;&#039; title=&#039;&quot;.$settings[&#039;sitename&#039;].&quot;&#039;&gt;&quot;);</p><p>require_once ADMIN.&quot;navigation.php&quot;;<br />opentable(&quot;Рассылка&quot;);</p><p>?&gt;<br />&lt;p align=&quot;center&quot;&gt;&lt;a href=&quot;/infusions/sender/sender2.php&quot; style=&quot;padding: 10px;&quot;&gt;Емайлы из комментариев&lt;/a&gt; | &lt;a href=&quot;/infusions/sender/sender2.php?list=1&quot; style=&quot;padding: 10px;&quot;&gt;Из гостиниц&lt;/a&gt; | &lt;a href=&quot;/infusions/sender/sender2.php?list=2&quot; style=&quot;padding: 10px;&quot;&gt;Из заявок на размещение&lt;/a&gt;&lt;/p&gt;<br />&lt;form action=&quot;&lt;? echo $_SERVER[&#039;REQUEST_URI&#039;]; ?&gt;&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;<br />&lt;?</p><p>if(empty($_GET[&#039;list&#039;])) {<br />&nbsp; &nbsp; EmailComment();<br />} elseif($_GET[&#039;list&#039;]==1) {<br />&nbsp; &nbsp; if(!empty($_GET[&#039;city&#039;])){<br />&nbsp; &nbsp; EmailCity($_GET[&#039;city&#039;]);<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; EmailCity();<br />&nbsp; &nbsp; }<br />}<br />if(!empty($_COOKIE[&#039;saveSubject&#039;])) { $ceck=&quot; checked&quot;; } else { $ceck=&quot;&quot;; }<br />?&gt;<br />&lt;b style=&quot;font-size: 14px; font-family:Arial;&quot;&gt;<br />Тема письма (&lt;input type=&quot;checkbox&quot; value=&quot;save&quot; name=&quot;saveSubject&quot;&lt;? echo $ceck; ?&gt;&gt; сохранить?):&lt;/b&gt;&lt;br&gt;<br />&lt;input type=&quot;text&quot; style=&quot;width:100%&quot; name=&quot;subject&quot; value=&quot;&lt;? echo $_COOKIE[&#039;saveSubject&#039;]; ?&gt;&quot;&gt;<br />&lt;? if(!empty($_COOKIE[&#039;saveMail&#039;])) { $ceck=&quot; checked&quot;; } else { $ceck=&quot;&quot;; } ?&gt;<br />&lt;b style=&quot;font-size: 14px; font-family:Arial;&quot;&gt;<br />Адрес для ответа (&lt;input type=&quot;checkbox&quot; value=&quot;save&quot; name=&quot;saveMail&quot;&lt;? echo $ceck; ?&gt;&gt; сохранить?):&lt;/b&gt;&lt;br&gt;<br />&lt;input type=&quot;text&quot; style=&quot;width:100%&quot; name=&quot;from&quot; value=&quot;&lt;? echo $_COOKIE[&#039;saveMail&#039;]; ?&gt;&quot;&gt;<br />&lt;b style=&quot;font-size: 14px; font-family:Arial;&quot;&gt;Сообщение&lt;/b&gt;&lt;br&gt;<br />&lt;textarea name=&quot;message&quot; style=&quot;width:100%; height: 300px&quot; class=&quot;tinymce&quot;&gt;&lt;? echo $message ?&gt;&lt;/textarea&gt;<br />&lt;input type=&quot;file&quot; name=&quot;file&quot;&gt;<br />&lt;input type=&quot;submit&quot; value=&quot;Отправить&quot;&gt;</p><br /><p>&lt;/form&gt;<br />&lt;?<br />if ($_POST) {<br />echo &quot;&lt;table width=\&quot;100%\&quot; cellpadding=\&quot;10\&quot;&gt;&quot;;<br />echo &quot;&lt;tr&gt;&lt;td valign=\&quot;top\&quot; width=\&quot;50%\&quot;&gt;&quot;;<br />&nbsp; &nbsp; echo $badmail;<br />echo &quot;&lt;/td&gt;&quot;;<br />echo &quot;&lt;td valign=\&quot;top\&quot; width=\&quot;50%\&quot;&gt;&quot;;<br />&nbsp; &nbsp; echo &quot;&lt;h3&gt;Отправленное письмо&lt;/h3&gt;&quot;;<br />&nbsp; &nbsp; echo $blank;<br />echo &quot;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />echo &quot;&lt;/table&gt;&quot;;<br />}<br />closetable();<br />require_once BASEDIR.&quot;footer.php&quot;;</p><p>?&gt;</p>]]></description>
			<author><![CDATA[null@example.com (castleflame)]]></author>
			<pubDate>Tue, 13 Dec 2011 13:24:28 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18309#p18309</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18308#p18308</link>
			<description><![CDATA[<p>Обрабатывает данные формы файл /infusions/sender/sender2.php, надо смотреть его исходный код.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 13 Dec 2011 13:13:58 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18308#p18308</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18306#p18306</link>
			<description><![CDATA[<p>весь код страницы</p>]]></description>
			<author><![CDATA[null@example.com (castleflame)]]></author>
			<pubDate>Tue, 13 Dec 2011 11:23:14 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18306#p18306</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18303#p18303</link>
			<description><![CDATA[<p>Надо разбираться с работой скрипта обрабатывающего данные формы. Для начала можно посмотреть логи на предмет ошибок. Больше пока ничего сказать не могу.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 13 Dec 2011 10:44:48 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18303#p18303</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18299#p18299</link>
			<description><![CDATA[<p>есть база где регистрируют заявки&nbsp; &nbsp;. emai из заявок должны перемещаться&nbsp; в базу для рассылки но они не перемещаются</p>]]></description>
			<author><![CDATA[null@example.com (castleflame)]]></author>
			<pubDate>Tue, 13 Dec 2011 10:06:30 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18299#p18299</guid>
		</item>
		<item>
			<title><![CDATA[Re: связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18298#p18298</link>
			<description><![CDATA[<p>К сожалению, не смог понять вопрос.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 13 Dec 2011 10:01:17 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18298#p18298</guid>
		</item>
		<item>
			<title><![CDATA[связь формы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=18294#p18294</link>
			<description><![CDATA[<p>ситуация такая есть .база данных mysql и форма рассылки которая должна заполнятся из нее <a href="http://www.navigator-mas.ru/infusions/sender/sender2.php?list=2">http://www.navigator-mas.ru/infusions/s … php?list=2</a> но она не заполняется хотя идентичные 2 заполняются</p>]]></description>
			<author><![CDATA[null@example.com (castleflame)]]></author>
			<pubDate>Tue, 13 Dec 2011 09:34:17 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=18294#p18294</guid>
		</item>
	</channel>
</rss>
