<?
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);
?>
Comments