Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-12-2001, 06:22 PM   #1
zex
Registered User
 
Join Date: Mar 2001
Posts: 10
Unhappy

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
zex is offline   Reply With Quote
Old 03-13-2001, 08:02 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 02:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.