12-01-2011, 10:49
|
|
|
חבר מתאריך: 31.05.02
הודעות: 1,076
|
|
תודה שימי על התגובה המהירה
הבנתי את הרעיון שלך אבל אין לי מושג איך ליישם זאת ולכן אני יציג עבורך את הקוד
בדף ה-contact.asp יש את הקוד הזה
קוד PHP:
<form action="contact_us2.asp" method="post">
עכשיו הדף contact_us2.asp ששם בעצם רשומה המערכת ללא העיצוב
קוד PHP:
<%
' Form DATA
Dim rFname,rLname,rSubject,rEmail,rPhone,rMessage
rFname = request.form("First Name")
rLname = request.form("Last name")
rSubject = request.form("Subject of letter")
rEmail = request.form("Email address")
rPhone = request.form("Phone")
rMessage = request.form("thetext")
dim sFrom , sTo, sSubject, sMessage
sFrom = "contact@mydomain.com"
sTo = "noy@mydomain.com"
sSubject = "Contact information (WEB Form)"
'email's content
sMessage = "First Name: " & rFname & vbcrlf & "Last Name: " & rLname & vbcrlf & "Subject: "
& rSubject & vbcrlf & "Email: " & rEmail & vbcrlf & "Phone: "
& rPhone & vbcrlf & "Message "& vbcrlf & rMessage
' Creating new instance of the CDONTS Object
Set objNewMail = CreateObject("CDONTS.NewMail")
' Firing the email
objNewMail.Send sFrom, sTo, sSubject, sMessage
Response.Redirect "http://www.mydomain.com/contact.asp?sent=1"
%>
תודה
נוי
|