# Send and load problems

**URL:** <https://forum.kirupa.com/t/send-and-load-problems/282391>\
**Category:** Uncategorized\
**Created:** [February 21, 2009, 8:34am UTC](https://forum.kirupa.com/t/send-and-load-problems/282391 "2009-02-21T08:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dad00](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@dad00](https://forum.kirupa.com/u/dad00)\
**Post date:** [February 21, 2009, 8:34am UTC](https://forum.kirupa.com/t/send-and-load-problems/282391/1 "2009-02-21T08:34:19Z")

</div>

im using this flash code

```auto
    achievement1=1;

var send_mc:LoadVars = new LoadVars(); 

send_mc.achievement1 = _root.achievement1; 

send_mc.sendAndLoad("http://localhost/flashtest.php", send_mc, "POST"); 

```

and i want it to do it on the same page the flash file is on which is [http://localhost/flashtest.php](http://localhost/flashtest.php) and this is my php code

```auto

<object width="550" height="400">
      <param name="movie" value="flash.swf">
      <embed src="flash.swf" width="400" height="550"> </embed>
      <br>
      <br>
    </object>
<?php
$hi=$_POST['achievement1'];
echo $hi;
?> 
but i just get this error Notice: Undefined index: achievement1 in C:\wamp\www\flashtest.php on line 8

```

what am i doing wrong?
