|
-
Passing data to php
I am working on an educational website. My Flash movie with end with a score I need to send back to the site to store in a database. I am some what new to flash, and have looked for the method on how the get data back to the site, and have not had much luck. My website uses PHP, and in written useing the CakePHP framework. I have created a test page on the site, and it shows what was submitted. All I need to do know is get the submission from flash to php.
I have to following code attach to some text I converted to a button:
on (release) {
var scoredata:LoadVars = new LoadVars();
scoredata.activitie = "001";
scoredata.score = Score;
scoredata.send('http://localhost/flash/submit/001/' + Score,"_self","POST");
}
and nothing seem to work. Like I said I am new to flash, and do not have a clue if this is correct or not. If someone could take a look and tell what coul be wrong, I would appreciate it. Thanks, Troy.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|