Solved

submitting a form from within a flash object

Posted on 2008-10-10
6
243 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Download slideshow or picture elements 16 417
flash cs6 4 334
how do I install adobe flash player on my ipad Air? 4 36
Adobe Products Forum? 3 136
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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 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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now