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
Solved

submitting a form from within a flash object

Posted on 2008-10-10
6
254 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't find all of the preferences on Flash Pro 2 492
FLV versus SWF 11 283
Rotating Adobe pdf document 4 321
Online Course Not Responding 3 96
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

828 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