| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2001
Posts: 10
|
Hello everyone!!!
I have problem as I am new to action scripting... I work for company that have php programer but I am asked to get and send some variables from my flash intro to php script... stuff as user name and pass and tracking of IP address where user came from... I would appreciate if someone could help me. I have created form where user can enter user name and pass but I am not quite sure what code to put in submit button loadVariables or getUrl... and how to retrive some data such as ip tracking form php script on server. Thank you! |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
loadVariables is generally used for submitting data if you don't want the user to be taken away fromthe flash file. See if you use GetURL it will go to the new page (the php page) in the same browser window so your flash movie will be closed down. If you use loadVariables you can call the PHP script and remain in the Flash movie.
Having said that,t here is no way to get the users IP using Flash so the best idea is to use GetURL I think in your case. GetURL can use either the POST or GET method. Personally I always use GET because it's easier to debug and less likely to cause trouble but you can use POST also (especially if you're transferring private data, like passwords). All you have to do is this: getURL ("thePage.php", "", "GET"); If you put that action on a button it will cause Flash to call your PHP script and ALL the variables in that Flash movie will be passed tot he script. You can then use PHP's ability to get the end user's IP... 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. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2001
Posts: 10
|
Thank you very much!!!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| one template, many looks? | subquark | ActionScript 1.0 (and below) | 1161 | 09-03-2009 04:45 PM |
| sendAndLoad with PHP bug? Flash 6 works, Flash 7 fails | dwagner | ActionScript 1.0 (and below) | 3 | 09-26-2005 06:19 PM |
| [Q] Do we need those forums??? | CyanBlue | General Chat | 59 | 07-27-2004 12:13 PM |
| When to output data from php in Flash | snapple | Server-Side Scripting | 11 | 07-23-2004 05:25 PM |
| Php, Javascript, and Flash 5 browser detect and more! | Redline01 | Server-Side Scripting | 2 | 08-11-2001 02:09 AM |