envisageiam
04-23-2010, 11:50 AM
Can someone please help me with this or point me to a thread with a similar issue:
Im trying to do a simple submit form from a flash file. When I put my php file on to the server and test the file out from my computer locally everything works fine and post to the data base as it should. But when I post my flash site to the server along with the submit php file nothing post.
//PHP:
<?
$host = 'localhost';
$user = '***';
$pass = '***';
$database = '***';
$table = 'loxlicense';
$assigned_number = $_POST['assigned_number'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$salon_name = $_POST['salon_name'];
$cosmetology_license = $_POST['cosmetology_license'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$username = $_POST['username'];
$password = $_POST['password'];
mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($database) or die(mysql_error());
$add_all = "INSERT INTO $table values('$assigned_number','$first_name','$last_nam e','$salon_name','$cosmetology_license','$phone',' $email','$username','$password','')";
mysql_query($add_all) or die(mysql_error());
?>
//ActionScript 2 (in flash file, on my submit button:)
on (release){
if (box1.text != "" and box2.text != "" and box3.text != ""and box4.text != ""and box5.text != ""and box6.text != ""and box7.text != ""and box8.text != ""and box9.text != "") {
assigned_number = box1.text;
first_name = box2.text;
last_name = box3.text;
salon_name = box4.text;
cosmetology_license = box5.text;
phone = box6.text;
email = box7.text;
username = box8.text;
password = box9.text;
loadVariablesNum("http://www.loxextensions.com/submit_to_Database.php", 0, "POST");
gotoAndPlay(10);
}
}
Im trying to do a simple submit form from a flash file. When I put my php file on to the server and test the file out from my computer locally everything works fine and post to the data base as it should. But when I post my flash site to the server along with the submit php file nothing post.
//PHP:
<?
$host = 'localhost';
$user = '***';
$pass = '***';
$database = '***';
$table = 'loxlicense';
$assigned_number = $_POST['assigned_number'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$salon_name = $_POST['salon_name'];
$cosmetology_license = $_POST['cosmetology_license'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$username = $_POST['username'];
$password = $_POST['password'];
mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($database) or die(mysql_error());
$add_all = "INSERT INTO $table values('$assigned_number','$first_name','$last_nam e','$salon_name','$cosmetology_license','$phone',' $email','$username','$password','')";
mysql_query($add_all) or die(mysql_error());
?>
//ActionScript 2 (in flash file, on my submit button:)
on (release){
if (box1.text != "" and box2.text != "" and box3.text != ""and box4.text != ""and box5.text != ""and box6.text != ""and box7.text != ""and box8.text != ""and box9.text != "") {
assigned_number = box1.text;
first_name = box2.text;
last_name = box3.text;
salon_name = box4.text;
cosmetology_license = box5.text;
phone = box6.text;
email = box7.text;
username = box8.text;
password = box9.text;
loadVariablesNum("http://www.loxextensions.com/submit_to_Database.php", 0, "POST");
gotoAndPlay(10);
}
}