Question: PHP Help File Handling and Post Request?
( Back )
Answer #1:
if(isset($_POST["IP"])){$file = fopen("C:\some place\some folder\filename.fileextension","a");
fwrite($file,"$_POST["IP"]");
fclose($file);
}
1) check if $_POST["IP"] ( or whatever variable is taking the value ) is NOT empty.
2) open file with the "a" switch ( means you will add content to the end ).
3) write IP adress to file
4) close the file.
You are done... now go buy me a cofee =.=
** Powered by Yahoo Answers