•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,666 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,868 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 550 | Replies: 3 | Solved
![]() |
•
•
Join Date: Jul 2007
Posts: 102
Reputation:
Rep Power: 2
Solved Threads: 2
hi
Im sure this is an easy problem to resolve. Basicly for my log-in script, im retreiving the results from a database, storing them in variables but i would like the redirection to be in flash (better looking).
Is there a way for me to load two variables called
$username
$password
into a flash file using actionscript.
Im sure this is an easy problem to resolve. Basicly for my log-in script, im retreiving the results from a database, storing them in variables but i would like the redirection to be in flash (better looking).
Is there a way for me to load two variables called
$username
$password
into a flash file using actionscript.
Use loadVars. Here is some code from a login for a similar project.
I did it with ActionScript 2.0. What you need are three text boxes and a submit button.
The first two text boxes (email and password) will be input text type with instance names of email and password. The third text box should be dynamic text type with an instance name of status. Then in the actions panel of the submit button, put this:
Then in the php page, if the person gets logged in,
and if denied
I hope this helps.
I did it with ActionScript 2.0. What you need are three text boxes and a submit button.
The first two text boxes (email and password) will be input text type with instance names of email and password. The third text box should be dynamic text type with an instance name of status. Then in the actions panel of the submit button, put this:
actionscript Syntax (Toggle Plain Text)
on (release) { status.text = "";//clearing status field for this attempt serverFile="/login.php"; //creating two LoadVars objects, to send and receive variables my_lv = new LoadVars(); result_lv = new LoadVars(); //Assign appropriate text boxes to LoadVars object my_lv.email = email.text; my_lv.password = password.text; //Send the variables and Load the servers response my_lv.sendAndLoad(serverFile, result_lv, "POST"); //event which is called when result_lv passed above, receives response from php page result_lv.onLoad = function(success:Boolean) { if (success) { email.text = "";//clearing all fields password.text = ""; status.text =result_lv ["serverResponse"]; //entering response to status field for display } } }
php Syntax (Toggle Plain Text)
echo "&serverResponse=Authentication confirmed";
php Syntax (Toggle Plain Text)
echo "&serverResponse=Access denied";
Last edited by buddylee17 : Mar 11th, 2008 at 7:11 pm.
•
•
Join Date: Mar 2008
Posts: 10
Reputation:
Rep Power: 1
Solved Threads: 0
Hi
I have my own team i website development and desktop application's development we are developing since last three days and we are intersted in such type of parites / providers who can provide us some work(s)
We can disscuss more first of all let me know if you are intrested. You can tex me at sirsmac@gmail.com
Regards.
----------
SMAC!
I have my own team i website development and desktop application's development we are developing since last three days and we are intersted in such type of parites / providers who can provide us some work(s)
We can disscuss more first of all let me know if you are intrested. You can tex me at sirsmac@gmail.com
Regards.
----------
SMAC!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- Loading Variables? (JavaScript / DHTML / AJAX)
- Live Stream Connection problems. (Techies' Lounge)
- Passing variables to and from PHP (JavaScript / DHTML / AJAX)
- Flash & XML: skipping past 2nd XML Declaration (Graphics and Multimedia)
- kb preloader for dynamic files (Graphics and Multimedia)
- Needs peoples thoughts (Website Reviews)
- Rundll error on startup (Viruses, Spyware and other Nasties)
- Problems with mouse and settings (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: PHP and ColdFusion
- Next Thread: Help No output??? php noob


Linear Mode