Solved

submitting a form from within a flash object

Posted on 2008-10-10
6
249 Views
Last Modified: 2010-04-03
I have an input text field name & email. I have form "code" supplied by a marketing company (snippet). I also have to code in a another unrelated email page.

When the user presses the button in the flash object, I want his name and email submitted with the form data.

Please address the question from how to do this within Macromedia Flash with the snippet below. If this is not possible, please explain how to do this.

The snippet has Java code and HTML code - either can be used for form submission. Note I think the form uses the field "from" instead of email.
HTML:
<center><form method="post" action="http://www.aweber.com/scripts/addlead.pl">
<input type="hidden" name="meta_web_form_id" value="182347028">
<input type="hidden" name="meta_split_id" value="">
<input type="hidden" name="unit" value="tkosubscribers">
<input type="hidden" name="redirect" value="http://www.tomahawktko.com/newsletterthankyou.html" id="redirect_4440f3fe0280176a1f1f313b0e26d9b4">
<input type="hidden" name="meta_redirect_onlist" value="">
<input type="hidden" name="meta_adtracking" value="">
<input type="hidden" name="meta_message" value="1">
<input type="hidden" name="meta_required" value="from">
<input type="hidden" name="meta_forward_vars" value="0">
<table>
<tr><td colspan=2><center></center></td></tr>
<tr><td>Name:</td><td><input type="text" name="name" value="" size="20"></td></tr>
<tr><td>Email:</td><td><input type="text" name="from" value="" size="20"></td></tr>
    <tr><td colspan=2><center></center></td></tr>
<tr><td align="center" colspan="2"><input type="submit" name="submit" value="Submit"></td></tr>
</table>
</form>
 
</center>
 
JAVA:
<script type="text/javascript" src="http://forms.aweber.com/form/28/182347028.js"></script>

Open in new window

0
Comment
Question by:Wanderinglazyeye
  • 4
  • 2
6 Comments
 
LVL 4

Expert Comment

by:codezp
ID: 22689142
You would probably be better off using php but here read this it shows you how to get variable from flash to perl:

http://www.sauronz.com/manuales/orrelly/webdesign/action/ch17_02.htm
0
 

Author Comment

by:Wanderinglazyeye
ID: 22689796
I think we may be going down a rabbit trail here.

The HTML code is simply the form that users see on an HTML page. It works fine. What I want to do is allow folks to enter their name and email on the flash iinstead of the HTML page to submit their name and email. In other words, I want to submit email and name from flash object instead of the HTML page.
0
 
LVL 4

Accepted Solution

by:
codezp earned 500 total points
ID: 22689839
Yes you have to make FLASH act like a HTML page. It needs to submit data to pearl script (http://www.aweber.com/scripts/addlead.pl) which will process the data entered.

So you need to make flash form with fields same as you have in HTML and then use link from my previous post to get data from flash to pearl for processing.

Make sense? Let me know
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:Wanderinglazyeye
ID: 22689941
Folks, after review, I think this is a problem for which their is no easy or common solution. To my chargrin, no search engine can provide the answer. It seems that HTML  form submission is easy until you try it in flash.

0
 

Author Comment

by:Wanderinglazyeye
ID: 22689948
Oooops, I didn't see your next post. Let me review. Makes sense, now! Will review,...
0
 

Author Comment

by:Wanderinglazyeye
ID: 22689978
Yeah this is beyond the requisite time requirements. I will break it out of flash into the HTML page.

That doesn't mean the post didn't have value. I will assign points. Quite to the contrary, your response, once I clearly understood it, properly illuminated the problem as being far more complex than I had envisioned. I was thus able to at least make a decision NOT to do it.

Thanks -
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
3D rotation for a product 3 339
IE 11 Flash Player issue 7 238
playing flash video on kiosk at startup 6 409
Open Source MP4 Flash Player 2 178
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

770 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