# Problem with var from php

**URL:** <https://forum.kirupa.com/t/problem-with-var-from-php/157163>\
**Category:** flash\
**Created:** [July 30, 2005, 2:00pm UTC](https://forum.kirupa.com/t/problem-with-var-from-php/157163 "2005-07-30T14:00:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knorcedger](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/knorcedger/32/1244_2.png) [@Knorcedger](https://forum.kirupa.com/u/Knorcedger)\
**Post date:** [July 30, 2005, 2:00pm UTC](https://forum.kirupa.com/t/problem-with-var-from-php/157163/1 "2005-07-30T14:00:58Z")

</div>

Hello, i use this code to send and load data to an php file, so that i can encrypt it. The problem is that it returns the right string, but with a " " (space) at the end. Why is this happening? Thanx

```auto
mydata = "12345";
var LV:LoadVars = new LoadVars();
LV.Variable = mydata;
LV.onLoad = function(ok) {
	 if (ok) {
			myVar = LV.password;
	 }
};
LV.sendAndLoad("myfile.php", LV, "POST");

```

```php
 <?php
$Data = $_POST['Variable'];
$myData = md5($Data);
echo "&password=$myData";
?> 

```
