I made a little mailing list and have a problem with it...People can sign up more than once! This is a flash integrated system, but I just need the php tp basically do this(The codes that I do try to include are probably wrong, so just stick with me)
Code: Select all
<?php
$outReceive = "output=".$outSend;
$update = "text.txt";
$email = $outSend;
$fp = fopen($update, "a");
$line = $outReceive . "\n";
$size = strlen($line);
if(stristr("$update", "$email"))
echo "update=false";
} else {
fputs($fp, $line, $size);
fclose($fp);
echo "update=true";
echo "alldone=yes";
?>here is what I got so far....this is what I think I am doing wrong...the stristr thing can't read directly from the txt file...I think I need to turn text.txt into some kind of different variable so it is readable by stristr...can anyone tell me how to do that? or a code to do that, and I will look it up? Thanks
Thanks,
Chase
P.S. Does anyone know of a forum for flash integrated with php, I can't find any?