0

I have a Flash game, and I want to save the winner's name in the database. To do so, I send the name and the points to a PHP file. I know to do this, and receive the information through the PHP GET variables.

scores.php?winner=name&points=5034

It will work fine as I see. but there is one problem that I thought of. What if someone just launch into the PHP file manually?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Shelef
  • 3,707
  • 6
  • 23
  • 28
  • 1
    Check this answer you can use s POST http://stackoverflow.com/a/6876800/1551411 –  Apr 28 '13 at 08:05
  • What version of Actionscript are you using? If I were writting this I would not pass the variables through the URL. I would use a POST directly from flash. IMO this would be much safer. Another option would be to use `ExternalInterface.call()` in Flash to some Javascript (jQuery) to post the information. – Mike Apr 28 '13 at 16:30

1 Answers1

0

You don't you use encryption method to encrypt data and send them. Read this article for more info. Decrypt when you get the values and store them in the database. Else you can use POST method. read more.

Community
  • 1
  • 1
Techie
  • 44,706
  • 42
  • 157
  • 243