Запишись on-line

$value ) { if ( $value != “” && $key != “project_name” && $key != “admin_email” && $key != “form_subject” ) { $message .= ” ” . ( ($c = !$c) ? ‘‘:’‘ ) . ” $key $value “; } } } else if ( $method === ‘GET’ ) { $project_name = trim($_GET[“project_name”]); $admin_email = trim($_GET[“admin_email”]); $form_subject = trim($_GET[“form_subject”]); foreach ( $_GET as $key => $value ) { if ( $value != “” && $key != “project_name” && $key != “admin_email” && $key != “form_subject” ) { $message .= ” ” . ( ($c = !$c) ? ‘‘:’‘ ) . ” $key $value “; } } } $message = “$message
“; function adopt($text) { return ‘=?UTF-8?B?’.base64_encode($text).’?=’; } $headers = “MIME-Version: 1.0” . PHP_EOL . “Content-Type: text/html; charset=utf-8” . PHP_EOL . ‘From: ‘.adopt($project_name).’ <'.$admin_email.'>‘ . PHP_EOL . ‘Reply-To: ‘.$admin_email.” . PHP_EOL; mail($admin_email, adopt($form_subject), $message, $headers );”>