# Variables question

**URL:** <https://forum.kirupa.com/t/variables-question/312894>\
**Category:** Uncategorized\
**Created:** [August 15, 2010, 12:15pm UTC](https://forum.kirupa.com/t/variables-question/312894 "2010-08-15T12:15:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanMilanov](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@IvanMilanov](https://forum.kirupa.com/u/IvanMilanov)\
**Post date:** [August 15, 2010, 12:15pm UTC](https://forum.kirupa.com/t/variables-question/312894/1 "2010-08-15T12:15:43Z")

</div>

Hi all,

I’ve got these 2 codes, attached to 2 buttons  
1:  
on (release) {  
var variable1=“sometext”;  
}

2:  
on (release) {  
varsToSend = new LoadVars();  
varsToSend.variable2=variable1.getValue();  
varsToSend.send(“[http://localhost/test.php",“process”,"POST](http://localhost/test.php%22,%22process%22,%22POST)”);

when I attach this script to the second button:  
on (release) {  
varsToSend = new LoadVars();  
varsToSend.variable2=“sometext”;  
varsToSend.send(“[http://localhost/test.php",“process”,"POST](http://localhost/test.php%22,%22process%22,%22POST)”);

it sends everything properly, but when I do it trough the 1’st way, it doesn’t sends anything… where’s the problem in the 1’st way? ☹
