Hi
My following script writes fine on the text file database, but am getting duplicate records, is there any way I can make it write only when record does not exist. Thnx
$FirstName = $POST['FirstName'];
$LastName = $POST['LastName'];
$Email = $_POST['Email'];
$content= $FirstName."|".$LastName."|".$Email."\r\n";
$fp = fopen("member.txt","a");
if(!$fp)
{
echo 'Error: Cannot open file.';
exit;
}
fwrite($fp,$content);
{
echo ("Hello, ".$POST['FirstName']." ".$POST['LastName']." to ICANS Members page.");
}
fclose($fp);