Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

submitting a form from within a flash object

Posted on 2008-10-10
6
Medium Priority
?
264 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
[X]
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
  • 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

Independent Software Vendors: 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!

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

722 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