|
|
|
|
![]() ![]() |
Nov 25 2007, 09:53 PM
Post
#1
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 28 Joined: 25-November 07 Member No.: 53,723 |
Is it possible pass flash variables to be processed in PHP language?
Example: Enter Login and password in a flash aplication and this variables (login and password) to be used in PHP? |
|
|
|
Nov 25 2007, 10:49 PM
Post
#2
|
|
|
Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 1,018 Joined: 25-September 05 From: L.A. Member No.: 12,251 |
Yes it is. Flash has a function called loadvariables which can get and send data from a webpage (such as a php page).
Syntax is: CODE loadVariables ( " url " , level/ " target " [ , variables ]) The url is the url of the php file, the target is what symbol will be receiving the variables, and variables is an optional parameter if you want to send data. For example if you wanted to send a username and password to the php page "login.php" you would use this code: CODE loadVariables("login.php","_root","username="+username+"&password="+password); and on login.php have it output success=true if the login was valid and success=false if the login was invalid, then you can have flash access that info through the variable "_root.success" |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 5th September 2008 - 06:30 PM |