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, 01:07 AM   #1
zex
Registered User
 
Join Date: Mar 2001
Posts: 10
Unhappy

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

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.
Jesse is offline   Reply With Quote
Old 03-12-2001, 04:50 AM   #3
zex
Registered User
 
Join Date: Mar 2001
Posts: 10
Default

Thank you very much!!!
zex 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
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


All times are GMT. The time now is 10:32 PM.


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.