# LoadVars problem

**URL:** <https://forum.kirupa.com/t/loadvars-problem/227569>\
**Category:** Uncategorized\
**Created:** [May 31, 2007, 12:44pm UTC](https://forum.kirupa.com/t/loadvars-problem/227569 "2007-05-31T12:44:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [May 31, 2007, 12:44pm UTC](https://forum.kirupa.com/t/loadvars-problem/227569/1 "2007-05-31T12:44:35Z")

</div>

Hi! 🍺

Im facing this problem thats really driving me nuts. Please, have a look in the following actionscript code::

```php

var gets = new LoadVars();
var sends = new LoadVars();

sends.something = "test";
sends.sendAndLoad('http://localhost/test/test.php?rand='+getTimer(), gets, "POST");

gets.onLoad = function(Success:Boolean){
    if(Success){
         texto.text = gets.php_test;
    }
}

```

…and the php code:

```php

<?php 

$varia = $_POST['something'];
print "php_test=".$varia;

?>

```

Pretty simple, dont you agree? But it doesnt work and I really cant see why. Im really new to php, so, maybe some problem with the code perhaps?
