Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

submitting a form from within a flash object

Posted on 2008-10-10
6
Medium Priority
?
267 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 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.
Suggested Courses
Course of the Month10 days, 2 hours left to enroll

927 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