Here is something helpful and relevant to your current situation:
A Good Tutorial which has Flash sending variables from a form to a server side script-
http://www.kirupa.com/developer/actions ... _email.htm
This will help you go in the right direction for what you want to do, at least I think so, and it's a simple tutorial!
If you find out Like I did that your server does not support PHP Scripts, then I have a modified version of Kirupa's tutorial that uses an ASP Script instead.
In Fact, here is the ASP equivalent of Kirupa's PHP Script:
<%
SendEmail Request("email"), "YOU@YOURSITE.COM", "SITE FEEDBACK", Request("message")
Sub SendEmail(ByVal strFrom, ByVal strTo, ByVal strSubject, ByVal strMessage)
Dim objMail
Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = strFrom
objMail.To = strTo
objMail.Subject = strSubject
objMail.BodyFormat = 1
objMail.MailFormat = 1
objMail.Body = strMessage
objMail.Send
Set objMail = Nothing
End Sub
Response.Redirect "http://www.DOMAIN.COM/index.htm"
%>
- <%
- SendEmail Request("email"), "YOU@YOURSITE.COM", "SITE FEEDBACK", Request("message")
- Sub SendEmail(ByVal strFrom, ByVal strTo, ByVal strSubject, ByVal strMessage)
- Dim objMail
- Set objMail = Server.CreateObject("CDONTS.Newmail")
- objMail.From = strFrom
- objMail.To = strTo
- objMail.Subject = strSubject
- objMail.BodyFormat = 1
- objMail.MailFormat = 1
- objMail.Body = strMessage
- objMail.Send
- Set objMail = Nothing
- End Sub
- Response.Redirect "http://www.DOMAIN.COM/index.htm"
- %>
If you do want to try the ASP version of the script, then follow Kirupa's tutorial step by step, and when you get to the part where it says to add this code to a button:
form.loadVariables("email.php", "POST");
Just change it to:
form.loadVariables("email.ASP", "POST");
My friend actually wrote this ASP script as far as I know, and I really personally know nothing about it other than how to change the basic variable names. Insert your email address instead of "YOU@YOURSITE.COM", and insert a subject line for the email message where it says "SITE FEEDBACK". The one thing I know about this script though is that the PHP script didn't work on the server but This ASP script did!
The line where it says "Response.Redirect "http://www.DOMAIN.COM/index.htm", I'm really not sure about... You can/should use your own website address, but I'm not sure if that line is optional in the script or not.. In other words, can it be removed? I don't know, maybe someone will answer that one for me and you!
I hope this helps you!