Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- function checkOK($field)
- {
- if (eregi("\r",$field) || eregi("\n",$field)){
- die("Invalid Input!");
- }
- checkOK($_POST[email]);
- $Title = "emails.txt";
- $thestuff = fopen($Title, "r");
- $newstringfromfile = fread($thestuff, 65000);
- fclose($thestuff);
- $newstringfromfile .= "; $_POST[email]";
- $thesamestuff = fopen($Title, "w");
- fputs($thesamestuff, $newstringfromfile);
- fclose($thesamestuff);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment