# POST becoming GET?

**URL:** <https://forum.kirupa.com/t/post-becoming-get/94630>\
**Category:** Uncategorized\
**Created:** [November 14, 2003, 7:55pm UTC](https://forum.kirupa.com/t/post-becoming-get/94630 "2003-11-14T19:55:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)\
**Post date:** [November 14, 2003, 7:55pm UTC](https://forum.kirupa.com/t/post-becoming-get/94630/1 "2003-11-14T19:55:54Z")

</div>

Hey everybody,

I’m having some problems using the send method of the LoadVars object. What I’m trying to do is send a variable to PHP which then ouputs it.

The problem is that I can get it to work using the GET method, but not using the POST method. Using the GET method I used this:

```auto

lv = new LoadVars();
lv.vari = "Variable sent via Flash";
lv.send("http://127.0.0.1/tut.php","_blank","GET");

```

And for the PHP I had:

```php

<?
$receive = $_GET['vari'];
echo $receive;
?>

```

And it worked fine. But it used this URL that displayed the variable so I thought I’d use POST:

```auto

lv = new LoadVars();
lv.vari = "Variable sent via Flash";
lv.send("http://127.0.0.1/tut.php","_blank","POST");

```

```php

<?
$receive = $_POST['vari'];
echo $receive;
?>

```

This _doesn’t_ work. Also, Flash seems to be still using the GET method, because the url it uses is the same as before:

[http://127.0.0.1/tut.php?vari=Variable%20sent%20via%20Flash](http://127.0.0.1/tut.php?vari=Variable%20sent%20via%20Flash)

while the ?vari=… part shouldn’t even be there when using POST, should it ? What’s going wrong here ?
