Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / August 2008



Tip: Looking for answers? Try searching our database.

Form for eMail w/o PHP or ASP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
burundanga - 25 Aug 2008 14:30 GMT
I am basically a Flash newbie trying to act as an expert.  My church needs a
website and I am trying to help.  They chose a freely available template from
"flashmo" that, fortunately, I've been able to modify with some success.  Two
problems: they want to have a form for prayer requests and I do not have the
knowledge, nor the time to study how, to do it with PHP or ASP.  I found a
template that uses four input fileds that are later passed to the user's email
program (i.e. Outlook EXpress).  The template works great but, when I attempt
to replicate it in the church's flash site, it doesn't work.  We would greatly
appreciate being directed to any tutorial that clearly explains how to do it.  
Thanks in advance for any help!!
DLMAES - 26 Aug 2008 17:34 GMT
Your better off using php, there are a lot of tutorials that are simple to use
and plenty of resources to help you put this together. Try starting here:
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
iahamed - 27 Aug 2008 07:35 GMT
form.loadVariables("email.asp", "POST");

then add this Code in ASP not PHP,

<%
DIM stremail, strsalutation, strfirstname, strlastname ,strjobtitle,
strcomapnyname, strweb, mail, reply, objMail

stremail = request.form("requiredemail")
strsalutation = request.form("requiredsalutation")
strfirstname = request.form("requiredfirstname")
strlastname = request.form("requiredlastname")
strjobtitle = request.form("requiredjobtitle")
strcomapnyname = request.form("requiredcomapnyname")
strweb = request.form("requiredweb")

mail = "info@whatever.com"
reply = request.form("requiredemail")
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = reply
objMail.Subject = "Message from Hospitality-MaldivesContact.com Media Kit
form."
objMail.To = mail

objMail.Body = "Email: " & stremail & vbCrLf & vbCrLf & _
"Salutation: " & strsalutation & vbCrLf & vbCrLf & _
"First name: " & strfirstname & vbCrLf & vbCrLf & _
"Last name: " & strlastname & vbCrLf & vbCrLf & _
"Jobtitle: " & strjobtitle & vbCrLf & vbCrLf & _
"Comapny name: " & strcomapnyname & vbCrLf & vbCrLf & _
"URL: " & vbCrLf & strweb

objMail.Send
Set objMail = nothing
'response.redirect "thankyou.asp"
%>

<%
strfirstname = request.form("requiredfirstname")
Response.Write "<br><br><br><br><p align=center><FONT COLOR=#831518
face=Tahoma span style=font-size:8.0pt;>" & "Hello, " & strfirstname &
"</font></p>"
%>
<P align="center"><span style="font-size:8pt; color:#9d9d9d; font-family:
Tahoma">Thank you for your response, we will get back to you soon.</span></P>

>I am basically a Flash newbie trying to act as an expert.  My church needs a
>website and I am trying to help.  They chose a freely available template from
[quoted text clipped - 6 lines]
>appreciate being directed to any tutorial that clearly explains how to do it.  
>Thanks in advance for any help!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.