
June 1st, 2005, 07:30 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 10
Time spent in forums: 1 h 30 m 43 sec
Reputation Power: 0
|
|
|
flash asp mail form
has anyone got a working version of a flash form that uses asp to send because
I have read tut after tut and still cant get it to work i have also downloaded
loads of fla files with the asp in and still i fail to get it to work
this is my asp
PHP Code:
<% strHost = "mail.t2euk.com" If Request("Send") <> "" Then Set Mail = Server.CreateObject("Persits.MailSender") Mail.Host = strHost Mail.From = Request.Form("youremail") Mail.FromName = Request.Form("yourname") Mail.AddAddress Request.Form("theiremail") Mail.Subject = "GT Karting Challenge" Mail.Body = Request("tmessage") strErr = "" bSuccess = False On Error Resume Next Mail.Send If Err <> 0 Then strErr = Err.Description else bSuccess = True End If End If Response.Write "writing=Ok" %>
and this is on my first keyframe
PHP Code:
submit.onPress = function(){ if(yourname.text!="" && yourtime.text !="" && youremail.text!=""){ myData.yourname = yourname.text myData.yourtime = yourtime.text myData.youremail = youremail.text myData.sendAndLoad("mail.asp", myData, "POST") } } myData = new LoadVars() myData.onLoad = function(){ if(this.writing=="Ok") { gotoAndPlay(26) status.text = "Challenge Sent" } else status.text = "Error sending challenge" } stop();
|