Flash Not sending variables data to php D:

ok, i started making a website, and i didnt liked the common html forms so i decided to make a flash one that do the same thing, the problem is that i cant get to send the variables if someone could help i would be gratefull

Heres the php code

<?php
$regusername = $_POST[rusername];
$regpassword = $_POST[rpassword];
$regname = $_POST[rname];
$reglastname = $_POST[rlastname];
$regemail = $_POST[remail];

$con = mysql_connect(“localhost”,“root”,“2xyynco8”);

mysql_select_db(“twdusers”, $con);

mysql_query(“INSERT INTO testusers(username, password, name, lastname, email, level, power) VALUES(’$regusername’, ‘$regpassword]’, ‘$regname’, ‘$reglastname’, ‘$regemail’, 1, 1)”);

mysql_close($con);
?>

the php code is working because if i run it directly it creates empty data in the DB, but the problem is in flash because it dont send the variables data to insert,
i made 5 forms in flash and named them: name1, lastname1, email1, username1, password1
and then i made a send button with this code=

on (release) {

var resultVars:LoadVars = new LoadVars();
var DataToSend:LoadVars = new LoadVars();
DataToSend.rname = name1;
DataToSend.rlastname = lastname1;
DataToSend.remail = email1;
DataToSend.rusername = username1;
DataToSend.rpassword = password1;
DataToSend.sendAndLoad(“http://localhost/files/flash/forms/register.php”, resultVars, “POST”);
_root.nextFrame();
}

i hope someone could help me to solve this i have been trying for hours without luck, im using flash 8…

DataToSend.rname = name1**.text**;
etc