Thanks!

Your spam will be arriving shortly.

first name: $fName
last name: $lName
email: $email
phone: $phone

HERE; //generate output for text file $output = $fName . "\t"; $output .= $lName . "\t"; $output .= $email . "\t"; $output .= $phone . "\n"; //open file for output $fp = fopen("contacts.csv", "a"); //write to the file fwrite($fp, $output); fclose($fp); ?>