Solved

ASP and Flash >> AUTOREPLY SCRIPT

Posted on 2003-10-24
4
344 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

623 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