473,513 Members | 2,339 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Post data from flash form to PHP form

1 New Member
I'm in the process of creating a flash based widget that send over one field in a form to a PHP file. I need help determing which action scripting I should use for this.

The user flow is:

User enters data into one field in a flash file that is embedded in an html page, hits the submit button.

After hitting the submit button, the user is taken off the current page to another page with their data posted to a form with the results.

Here's the exact application:

Create a flash widget that has similar functionality to this:
http://www.dreamcrowd.com/dream_interpreter.php

and post data to

http://www.dreamcrowd.com/dream_interpreter_results.php

here is my fla file so far without the action scripting.
http://www.dreamcrowd.com/dream_interpreter.fla
Jul 4 '07 #1
1 13244
xNephilimx
213 Recognized Expert New Member
You should use the loadVariables method.
Do this, the instance name of the text input that the user use to write the dream should be the name of the variable that you are fetching in the php results page, so if you have your results page get $_POST['dream'], you should name it "dream". Then put that text input inside a movieclip instance named as "form" (for example), then in the code of the button you should write this:

Expand|Select|Wrap|Line Numbers
  1. on(release) {
  2.  _root.form.loadVariables("dream_interpreter_results.php", "POST");
  3. }
  4.  
Then, if you want to get the data from the php to the flash file you should use the form.onData = somefunction; being the "somefunction" the function to handle the server response.

I'm in the process of creating a flash based widget that send over one field in a form to a PHP file. I need help determing which action scripting I should use for this.

The user flow is:

User enters data into one field in a flash file that is embedded in an html page, hits the submit button.

After hitting the submit button, the user is taken off the current page to another page with their data posted to a form with the results.

Here's the exact application:

Create a flash widget that has similar functionality to this:
http://www.dreamcrowd.com/dream_interpreter.php

and post data to

http://www.dreamcrowd.com/dream_interpreter_results.php

here is my fla file so far without the action scripting.
http://www.dreamcrowd.com/dream_interpreter.fla
Jul 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

15
3105
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
0
2015
by: Uma Vivek | last post by:
Hi, I have a problem with Flash remoting via .NET . I seem to have all the code right, but flash does not seem to display the data at all. Here's is what Ive done so far... (1) Ive...
1
4804
by: LD | last post by:
Hi, I'm pulling my hair out!! My problem is, I need to automatically upload a zip file along with 3 other pieces of text data to a web server and wait for it's xml response. Basically a...
2
6017
by: LD | last post by:
Hi, I am trying to upload a zip file and other form data elements to a server and get a response. The server keeps responding with Malformed Multipart Post. Can anyone see what might be wrong...
2
2050
by: mykyp | last post by:
Hi, I am trying to use my vb.net app as a replacement to a normal browser to interface with a website. I am trying to achieve 2 things: 1) logon to the website 2) complete forms and submit data...
0
3860
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
1
31504
by: John Wolff | last post by:
I’m trying to upload a file to a Web Service. I have to submit the file using a standard HTML form with the <input type=“file” /tag. Ultimately, we are submitting the file from a Flash 8...
3
8056
by: JohnGos | last post by:
Since around 10th May (a couple of days after the recent IE autoupdate), a web application which has worked without problem for several years has developed intermittent problems with data posted from...
0
4040
by: shlim | last post by:
Currently I'm using VB.Net to perform a http/https multipart form post to a servlet. I'm able to perform the post using HttpWebrequest via GetRequestStream(). However, the servlet returned me with...
0
7391
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
466
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.