flash - How to pass actionScript 2 value to php -


i have decompiled flash game. there variable called totalscore. need send variable leaderboard.php. how can in secure.

currently i'm passing value this.

geturl("mydomain.com/leaderboard.php&value="+totalscore,'_top','get'); 

i have accessed above value this:

leaderboard.php

$totalscore = $_get['value']; 

but method not secure. because 1 can change value press enter. value of 'value' store in db.

i tried using post method on actionscript. not worked.

please me solve problem?

you can use loadvars has send() , sendandload() methods.

the third argument of both of these lets determine method want use send data (get or post). example:

var vars:loadvars = new loadvars(); vars.value = totalscore; vars.send("mydomain.com/leaderboard.php", "_blank", "post"); 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -