Konu olması gerektiği yere taşındı. Lütfen konuları açarken daha dikkatli olalım. Bu şekilde forumun düzenini sağlayabiliriz.

Senbul' Alıntı:

&lt;H3&gt;Tavsiye v 1.0&lt;/H3&gt; &lt;% Dim objCDONTS Dim strFromName Dim strFromEmail, strToEmail Dim strSubject, strBody Dim strThisPage Dim strReferringPage Dim bValidInput strThisPage = Request. ServerVariables strReferringPage = Request. ServerVariables ' Debugging lines: 'Response. Write strThisPage &amp; &quot;&lt;BR&gt;&quot; &amp; vbCrLf 'Response. Write strReferringPage &amp; &quot;&lt;BR&gt;&quot; &amp; vbCrLf ' Read in and set the initial values of our message parameters strFromName = Trim(Request. Form strFromEmail = Trim(Request. Form strToEmail = Trim(Request. Form strSubject = &quot;Check out ASP 101!&quot; strBody = Trim(Request. Form ' I set the body message to a message that referenced the page the ' user arrived from. This makes it great if you place a link to it ' from your different articles, but can be weird if people link in ' from other web sites. If strBody = &quot;&quot; Then If strReferringPage = &quot;&quot; Or InStr(1, strReferringPage, &quot;www.veritabanim.com&quot;, 1) = 0 Then strBody = &quot;&quot; strBody = strBody &amp; &quot;Bu site harika bir site. Mutlaka gez...&quot; &amp; vbCrLf strBody = strBody &amp; vbCrLf strBody = strBody &amp; &quot; http://www.veritabanim.com&quot; &amp; vbCrLf Else strBody = &quot;&quot; strBody = strBody &amp; &quot;Bu siteyi mutlaka gezmelisin&quot; &amp; vbCrLf strBody = strBody &amp; vbCrLf strBody = strBody &amp; &quot; &quot; &amp; strReferringPage &amp; vbCrLf End If End If ' Quick validation just to make sure our parameters are somewhat valid bValidInput = True bValidInput = bValidInput And strFromName &lt;&gt; &quot;&quot; bValidInput = bValidInput And IsValidEmail bValidInput = bValidInput And IsValidEmail ' If valid send email and show thanks, o/w show form If bValidInput Then ' Set up our email object and send the message Set objCDONTS = Server. CreateObject objCDONTS. From = strFromName &amp; &quot; &lt;&quot; &amp; strFromEmail &amp; &quot;&gt;&quot; objCDONTS. To = strToEmail objCDONTS. Subject = strSubject objCDONTS. Body = strBody objCDONTS. Send Set objCDONTS = Nothing ' Show our thank you message ShowThanksMsg Else If &quot;http://&quot; &amp; Request. ServerVariables &amp; strThisPage = strReferringPage Then Response. Write &quot;Lutfen bos alan birakmayin. Mail adreslerini dogru yazin&quot; &amp; &quot;&lt;BR&gt;&quot; &amp; vbCrLf End If ' Show our information retrieval form ShowReferralForm strThisPage, strFromName, strFromEmail, strToEmail, strBody End If ' End of page logic... subs and functions follow! %&gt; &lt;% ' Subroutines and Functions that encapsulate some functionality ' and make the above code easier to write... and read. ' A quick email syntax checker. It's not perfect, ' but it's quick and easy and will catch most of ' the bad addresses than people type in. Function IsValidEmail Dim bIsValid bIsValid = True If Len &lt; 5 Then bIsValid = False Else If Instr(1, strEmail, &quot; &quot;) &lt;&gt; 0 Then bIsValid = False Else If InStr(1, strEmail, &quot;@&quot;, 1) &lt; 2 Then bIsValid = False Else If InStrRev &lt; InStr(1, strEmail, &quot;@&quot;, 1) + 2 Then bIsValid = False End If End If End If End If IsValidEmail = bIsValid End Function ' I made this a function just to get it out of the ' logic and make it easier to read. It just shows the ' form that asks for the input Sub ShowReferralForm ' I use script_name so users can rename this script witout having to change the code. %&gt; &lt;FORM ACTION=&quot;&lt;%= strPageName %&gt;&quot; METHOD=&quot;post&quot; name=frmReferral&gt; &lt;TABLE BORDER=&quot;0&quot;&gt; &lt;TR&gt; &lt;TD VALIGN=&quot;top&quot; ALIGN=&quot;right&quot;&gt;&lt;STRONG&gt;Adiniz:&lt;/STRONG&gt;&lt;/TD&gt; &lt;TD&gt;&lt;INPUT TYPE=&quot;text&quot; NAME=&quot;txtFromName&quot; VALUE=&quot;&quot; SIZE=&quot;30&quot;&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD VALIGN=&quot;top&quot; ALIGN=&quot;right&quot;&gt;&lt;STRONG&gt;Sizin Mailiniz:&lt;/STRONG&gt;&lt;/TD&gt; &lt;TD&gt;&lt;INPUT TYPE=&quot;text&quot; NAME=&quot;txtFromEmail&quot; VALUE=&quot;&quot; SIZE=&quot;30&quot;&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD VALIGN=&quot;top&quot; ALIGN=&quot;right&quot;&gt;&lt;STRONG&gt;Arkadasinizin Maili:&lt;/STRONG&gt;&lt;/TD&gt; &lt;TD&gt;&lt;INPUT TYPE=&quot;text&quot; NAME=&quot;txtToEmail&quot; VALUE=&quot;&quot; SIZE=&quot;30&quot;&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD VALIGN=&quot;top&quot; ALIGN=&quot;right&quot;&gt;&lt;STRONG&gt;Mesaj:&lt;/STRONG&gt;&lt;/TD&gt; &lt;TD&gt;&lt;TEXTAREA NAME=&quot;txtMessage&quot; COLS=&quot;50&quot; ROWS=&quot;5&quot; WRAP=&quot;virtual&quot; READONLY&gt;&lt;/TEXTAREA&gt; &lt;/TR&gt; &lt;TR&gt; &lt;TD&gt;&lt;/TD&gt; &lt;TD&gt;&lt;INPUT TYPE=&quot;reset&quot; VALUE=&quot;SİL&quot; name=rstReferral&gt; &lt;INPUT TYPE=&quot;submit&quot; VALUE=&quot;GÖNDER&quot; name=subReferral&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;/TABLE&gt; &lt;/FORM&gt; &lt;% '&lt;P&gt;The Message to be sent:&lt;/P&gt; '&lt;P&gt;&lt;B&gt;Subject:&lt;/B&gt; &lt; %= strSubject % &gt;&lt;/P&gt; '&lt;P&gt;&lt;B&gt;Body:&lt;/B&gt; &lt; %= strBody % &gt;&lt;/P&gt; End Sub ' This just shows our thank you message... probably didn't need to ' be a function, but since I made the form one I figured I'd do this ' for consistency. Sub ShowThanksMsg %&gt; &lt;P&gt;&lt;/P&gt; &lt;% End Sub %&gt; &lt;! tavsiye.html başlangıcı &gt; &lt;html&gt; &lt;head&gt;&lt;title&gt;Tavsiye et&lt;/title&gt;&lt;/head&gt; &lt;body bgcolor=&quot;#ffffff&quot;&gt; &lt;form action=&quot;tavsiye. php&quot; method=&quot;post&quot;&gt; Arkadaşınızın E-mail Adresi: &lt;input type=&quot;text&quot; name=&quot;email&quot;&gt;&lt;br&gt; Sizin Adınız: &lt;input type=&quot;text&quot; name=&quot;sendername&quot;&gt;&lt;br&gt; E-mail Adresiniz: &lt;input type=&quot;text&quot; name=&quot;senderemail&quot;&gt;&lt;br&gt; &lt;input type=&quot;submit&quot; value=&quot;Tavsiye et!&quot;&gt; &lt;input type=&quot;reset&quot; value=&quot;Temizle&quot;&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; &lt;! tavsiye.html sonu &gt; &lt;! tavsiye. php başlangıcı &gt; &lt;? mail ; echo &quot;Bizi tavsiye ettiğiniz için teşekkür ederiz.&quot;; ?&gt; &lt;! tavsiye. php sonu &gt; Bir ASP bir PHP ornek kod. Hazırkod.com'dan Alınmıstır.

selam arkadaşlar asp veya php ile nasıl basit bir tavsiye formu yapabilecegimi bilen varmı mesela sadece arkadaşının adı maili gönder e basması yeterli böyle bir tavsiye formunu yapmak icin bana birisi yardım edebilirse çok sevinirim Bu konuyu burada yazmamın sebebi asp, php bölümünün fazla ilgi görmemesidir Yanlış anlaşılsın istemem ve lütfen yardımcı olabilecek kişiler yazsın başka konuları açmıyalım diğer yazılarımda oldugu gibi iyi çalışmalar