Sending a form through flash

Posted on 2006-06-14
Last Modified: 2010-08-05
I am trying to create a newsletter request box. I need it to take an email address that a user inputs then send it to our company email address. I also want there to be some sort of message that shows that the message has been sent

Question by:eli290
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

Expert Comment

ID: 16909011
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16909234

here is what exactly you want

Flash Based Email Form Using PHP

LVL 34

Accepted Solution

Aneesh Chopra earned 500 total points
ID: 16909239
source files used in above tutorial are also available here:
Industry Leaders: 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!


Author Comment

ID: 16911364
Where does the php file have to be put?
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16911383
on your server,

if you have installed apache server on your local machine, you can copy it in www. folder for testing

do remember to provide the updated path to flash swf.

Author Comment

ID: 16911411
I know on the server but which folder? Currently I have my html page directly in the public_html and i have the swf in a sub folder called flash
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16911505
if your server support php, you can place it anywhere inside public_html..

just update the path according inside swf
and IMPORTANT: use relative path inside swf

Author Comment

ID: 16911529
Sorry I lost you, where do i set the relative path inside swf
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16911538
I suggest you just, place php file in the same folder where swf resides..

and use the php name simply as "myphpfile.php"

Author Comment

ID: 16911579
If at all possible could you look at my source file for it? It is located at

LVL 34

Expert Comment

by:Aneesh Chopra
ID: 16911664

1. just place form.php in the same folder where swf will be.
2. textField should be in the same movieClip where button reside, currently textField inside a movieClip.. just select movieClip "email" and press CTRL+B, now you will have button and textField both in same level

3. now assign a variable name to textField.. (not instance name, assign variable name)
select the textField, and Just look for "Var:" in properties panel

rest I hope, php side you know how to handle it.

Expert Comment

ID: 16913561
You could call a .asp file from flash.  In flash, call the file like this:

In you email.asp file, this would be the code:

<%@ LANGUAGE="VBScript"%>
'Send email
      Dim objCDO
    Set objCDO = Server.CreateObject("CDONTS.NewMail")
      objCDO.To = ";"
      objCDO.From = Request("Email")
    objCDO.Subject = "IRIS Feedback submitted"
      objCDO.Body = Request("Name") + " submitted the following information:" + space(75) + "Phone: " + Request("Phone") + space(75) + " " + space(75) + Request("Comments")
      Set objCDO = Nothing%>

Hope this helps,

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Text To Speech Reader For Adobe Flash Pages 4 962
Action Script coding 1 187
Flash Player Action Script Error 1090 5 225
Adobe flash player memory exhaustion 6 98
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

733 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