| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2001
Posts: 10
|
What should I do to get data (querystr) from php script to Flash 5 and pass it back to the same php script, but with that data I am going to pass user name and pass as well at the same time on one button click. Should I put code in same place where is my submit button?
Do I have to declare new variable or I can just somehow call it an return it. I am not going to change that data and after user click submit I will go out of Flash and php will bring me to new html page but in html page source that data that I pass should be seen... with user name and pass. Thank yuo very much! I hope that question is clear...I know how to pass user name and pass and it works thanks to Jesse for explanation but I still don't know how to get some data from php scrip and pass it back to that script. Thank you one more time! zex |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
My loadVars and PHP interaction tutorial at http://www.actionscripts.org/tutoria...on/index.shtml shows how you can call a PHP script with loadVars and send it various variables and have results returned automatically.
If you're trying to do something like get database data via PHP into Flash though you might need 2 scripts. The first you would call use loadVariablesNUM, it interacts with your database and sends the data back to flash using the method described in the tutorial above. Then that data is safely within flash and you can manipulate it however you like then call another PHP script with loadVariables again when you're ready to write to the database. That's just an example... In general I use loadVariablesNUM and the GET method for sending and retrieving data from a PHP file. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| writing to text file via php using LoadVars | victor322 | ActionScript 2.0 | 5 | 05-10-2006 03:42 AM |
| Problem with AS and PHP, have to click button twice to return variable from php | jetgrind | ActionScript 2.0 | 5 | 10-19-2005 08:43 AM |
| LoadVars or XML with PHP on DIFFERENT servers doesn't work. | Sckz | Server-Side Scripting | 4 | 07-14-2005 12:01 AM |
| Problems loading PHP file into Flash | lrempel | ActionScript 2.0 | 1 | 01-25-2005 12:11 PM |
| how to link Action Script to a remote PHP | atomskreymx | Server-Side Scripting | 2 | 11-16-2004 07:01 AM |