username.",".$data->color.",".$data->size."\n"; $filename = "welcomedata.txt"; $myfile = fopen($filename, "a"); if (!$myfile) { die("Unable to open $filename."); } fwrite($myfile, $dataString); fclose($myfile); ?>