myVars.send();

hi guys

i have a problem:
i wanted to send the variables with myvars.send();
but i did not want to open a new window so i deleted the parameters target and method.
like this:
myvars.send(“send.php”);
when i did that the variables were not send

but why

please help
thx

make sure your php file starts like this:

<?php
myVar = $_POST['myVar'];
myVar2 = $_POST['myVar2'];
.....

note that the default method used with LoadVars.send() is “POST” and not “GET”… that might have caused your problem :slight_smile:

thanx

but i already knew that :slight_smile:
but it does’nt work.

no i don’t think :frowning:

in my “send.php” is written:
<?php
$f = $_POST[“first”];
$fp = fopen(“txt.txt”,“w+”);
fwrite($fp,$f);
?>

but the file txt.txt has not been created
it was created when i entered a target in myVars.send();

sorry… i don’t see why it isn’t working