# Problem with LoadVar

**URL:** <https://forum.kirupa.com/t/problem-with-loadvar/51596>\
**Category:** flash\
**Created:** [May 14, 2004, 3:42pm UTC](https://forum.kirupa.com/t/problem-with-loadvar/51596 "2004-05-14T15:42:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)\
**Post date:** [May 14, 2004, 3:42pm UTC](https://forum.kirupa.com/t/problem-with-loadvar/51596/1 "2004-05-14T15:42:30Z")

</div>

```auto
 
deleteVars = new LoadVars();
deleteResponse = newLoadVars();
deleteResponse.onData = function() {
trace("Responded");
Alert.show(this.response, "Delete Status", Alert.OK, _root);
};
deleteVars.path = directoryTree.selectedNode.attributes.path;
trace(deleteVars.path);
deleteVars.sendAndLoad("[http://siteadministrator.simplifiedsoftware.org/delete.php](http://siteadministrator.simplifiedsoftware.org/delete.php)", deleteResponse);

```

```php
 
<?php
echo 'response='.unlink($path);
?>

```

Nothing happens…ever! But if I go to the site ([http://siteadministrator.simplifiedsoftware.org/delete.php](http://siteadministrator.simplifiedsoftware.org/delete.php)) and type in “?somefile.exe” it will either throw the error…or do what it is supposed to do delete the file…

So that would mean the the AS is flawed somewhere, right? What to do? ☹
