Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Flash With Php
rigueira
post 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?
Go to the top of the page
 
+Quote Post
galexcd
post 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"
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Need Help Generating Flash Movie With Ming Library(0)
  2. Mambo Migrating(1)
  3. Php And Flash Movie Ie Problem(2)
  4. Simple Chat(8)
  5. Flash Portal Script(3)
  6. Flash + PHP: How can I transfer vars?(4)
  7. Php And Flash Image Gallery(5)
  8. Flash And Php(5)


 



- Lo-Fi Version Time is now: 5th September 2008 - 06:30 PM