Solved

ASP and Flash >> AUTOREPLY SCRIPT

Posted on 2003-10-24
4
308 Views
Last Modified: 2008-03-06
Please,

I have made a ordeing form in flash, but i want the clients to see (after the submit) what they've entered.
Either in a mail to their email adress, or some kind of popup page or something, i don't know..
Can somebody help me?
Thanx!
0
Comment
Question by:Sassiewas
4 Comments
 
LVL 4

Accepted Solution

by:
astankovic earned 250 total points
Comment Utility
Check this tutorial (it has 3 pages) It describes all the steps in detail.

http://www.webthang.co.uk/tuts/tuts_fmx/gfmx4/gfmx4_1.asp

Hope this helps,
Alex
0
 
LVL 1

Assisted Solution

by:CycLonE
CycLonE earned 250 total points
Comment Utility
Well Sassiewas,

First you need to pass the data from flash to asp. as any form, entries can be passed by POST/GET method.

1- create your form in flash
2- let's say you have 3 fields: (name, emails, comment)
3- here's the code for flash:(sample)
//starts here
//this is the send/submit button code
    Load Variables ("sampleform.asp", "", vars=GET)
     Set Variable: "submit" = True
     Set Variable: "y" = 0
     Play
//the reset button code
     Set Variable: "name" = ""
     Set Variable: "email" = ""
     Set Variable: "comment" = ""
// ends here

in your ASP file. //.asp file must have the name "sampleform.asp"

<%
Dim strName, strEmail, strComment, MailObj, MailBody

strName=request.querystring("name")
strEmail=request.querystring("email")
strComment=request.querystring("comment")

'//create mail object to send emails
'//here is an example

set MailObj = Server.CreateObject("CDONTS.NewMail")
MailObj.To = strEmail
MailObj.From = "me@mycompany.com"
MailObj.Subject = "confirm registration"

'// create the email body
'//the body will be in HTML format
MailBody = "Hello " & strName & "," 'output ===> Hello person,
MailBody = MailBody & "<br><br>"
MailBody = MailBody & "This email has been sent to you based on the mail addressed you gave us."
MailBody = MailBody & "your comment is: " & strComment
MailBody = MailBody & "<br><br><br>"
MailBody = MailBody & "we will contact you as soon as possible, thank you."
MailObj.body = MailBody
MailObj.send
set MailObj = Nothing

Good Luck ;-)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now