Solved

ASP and Flash >> AUTOREPLY SCRIPT

Posted on 2003-10-24
4
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Accepted Solution

by:
astankovic earned 250 total points
ID: 9613908
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
ID: 9620051
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
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…

749 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