that works perfectly but I need to separate this line. Each cell in the line represents its own variable. How would I do that?
Also I wasn't aware that this can be done without PHP. Here was my code for saving the variables.
ActionScript Code:
var request:URLRequest = new URLRequest( "http://marinpetkov.com/excel.php" );
var variables:URLVariables = new URLVariables();
variables.mc1_category = mc1_category;
variables.mc1_type = mc1_type;
variables.mc1scale1 = mc1scale1;
variables.mc1scale2 = mc1scale2;
variables.mc1scale3 = mc1scale3;
request.data = variables;
request.method = URLRequestMethod.POST;
sendToURL(request);
PHP Code:
<?php
$file=fopen("file.csv","a+");
$mc1_category = $_POST['mc1_category'];
$mc1_type = $_POST['mc1_type'];
$mc1scale1 = $_POST['mc1scale1'];
$mc1scale2 = $_POST['mc1scale2'];
$mc1scale3 = $_POST['mc1scale3'];
$mc1content.= $mc1_category.','.$mc1_type.','.$mc1scale1.','.$mc1scale2.','.$mc1scale3."\n";
fwrite($file, $mc1content);
;
fclose($file);
?>