<commit_before><?php
// Check for empty fields
if(empty($_POST['name'])  		||
   empty($_POST['email']) 		||
   empty($_POST['phone']) 		||
   empty($_POST['message'])	||
   !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
   {
	echo "No arguments Provided!";
	return false;
   }




$name = strip_tags(htmlspecialchars($_POST['name']));
$email_address = strip_tags(htmlspecialchars($_POST['email']));
$phone = strip_tags(htmlspecialchars($_POST['phone']));
$message = strip_tags(htmlspecialchars($_POST['message']));

file_put_contents("messages.txt", $name, FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);

file_put_contents("messages.txt", $email_address, FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);

file_put_contents("messages.txt", $phone, FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);

file_put_contents("messages.txt", $message, FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);

echo "hello";
//
// // Create the email and send the message
// $to = '<EMAIL>'; // Add your email address inbetween the '' replacing <EMAIL> - This is where the form will send a message to.
// $email_subject = "Website Contact Form:  $name";
// $email_body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email_address\n\nPhone: $phone\n\nMessage:\n$message";
// $headers = "From: <EMAIL>\n"; // This is the email address the generated message will be from. We recommend using something like <EMAIL>.
// $headers .= "Reply-To: $email_address";
// mail($to,$email_subject,$email_body,$headers);
 return true;
?><commit_msg>mess with contact form<commit_after><?php



file_put_contents("messages.txt", $_POST['name']), FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);

file_put_contents("messages.txt", $_POST['email']), FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);

file_put_contents("messages.txt", $_POST['phone']), FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);

file_put_contents("messages.txt", $_POST['message']), FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);
file_put_contents("messages.txt", "\n", FILE_APPEND);



// Check for empty fields
if(empty($_POST['name'])  		||
   empty($_POST['email']) 		||
   empty($_POST['phone']) 		||
   empty($_POST['message'])	||
   !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
   {
	echo "No arguments Provided!";
	return false;
   }




$name = strip_tags(htmlspecialchars($_POST['name']));
$email_address = strip_tags(htmlspecialchars($_POST['email']));
$phone = strip_tags(htmlspecialchars($_POST['phone']));
$message = strip_tags(htmlspecialchars($_POST['message']));


echo "hello";
//
// // Create the email and send the message
// $to = '<EMAIL>'; // Add your email address inbetween the '' replacing <EMAIL> - This is where the form will send a message to.
// $email_subject = "Website Contact Form:  $name";
// $email_body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email_address\n\nPhone: $phone\n\nMessage:\n$message";
// $headers = "From: <EMAIL>domain.com\n"; // This is the email address the generated message will be from. We recommend using something like <EMAIL>.
// $headers .= "Reply-To: $email_address";
// mail($to,$email_subject,$email_body,$headers);
 return true;
?>
{'fraction_non_alphanumeric': 0.1822070145423439, 'fraction_numerical': 0.0, 'mean_word_length': 5.759152215799615, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4359270', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1128, 'n_words': 261}