$postFieldValue) $strPostData .= "{" . $postFieldKey . "=" . $postFieldValue . "}"; $newLogEntry = $strDate . ";" . $strToEmail . ";" . $strFromEmail . ";" . $strIP . ";" . $strPostData . ";\n"; if(!is_file($filename)) $newLogEntry = "DATE;TO_EMAIL;FROM_EMAIL;CLIENT_IP;POST_DATA{key=value};\n" . $newLogEntry; $fh = fopen($fileName, "a"); fwrite($fh, $newLogEntry); fclose($fh); }