coolguylentz

contact.php

Mar 17th, 2012
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?
  2. function checkOK($field)
  3. {
  4. if (eregi("\r",$field) || eregi("\n",$field)){
  5. die("Invalid Input!");
  6. }
  7.  
  8. checkOK($_POST[email]);
  9.  
  10. $Title = "emails.txt";
  11. $thestuff = fopen($Title, "r");
  12. $newstringfromfile = fread($thestuff, 65000);
  13. fclose($thestuff);
  14.  
  15. $newstringfromfile .= "; $_POST[email]";
  16.  
  17. $thesamestuff = fopen($Title, "w");
  18. fputs($thesamestuff, $newstringfromfile);
  19. fclose($thesamestuff);
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment