# SendAndLoad numeric variables problem?

**URL:** <https://forum.kirupa.com/t/sendandload-numeric-variables-problem/201666>\
**Category:** Uncategorized\
**Created:** [September 23, 2006, 7:04pm UTC](https://forum.kirupa.com/t/sendandload-numeric-variables-problem/201666 "2006-09-23T19:04:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atokatim](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@atokatim](https://forum.kirupa.com/u/atokatim)\
**Post date:** [September 23, 2006, 7:04pm UTC](https://forum.kirupa.com/t/sendandload-numeric-variables-problem/201666/1 "2006-09-23T19:04:52Z")

</div>

I am in need of some actionscripting help quickly! I am trying to get a numeric value from php using the sendAndLoad function. I can get it to ALMOST work, but the flash must not recognize it as a number.

Here is my code :

```php

var scor:Number = 0;
lvOut = new LoadVars();
lvIn = new LoadVars();
lvIn.onLoad = function (success)
{
    scor = lvIn.myscore;
    trace(scor);
    //scor = ;
    bet = 1;
    win = 0;
};
lvOut.score = 676; //for testing only
lvOut.sendAndLoad("http://www.gothics-r-us.com/getscore.php", lvIn, "POST");

//Then in a function to update the score....

scor = scor + (win - bet);

// this will return 676-1 instead of 675

```

any ideas??
