Need help, Please help me!
Started on the old forum in April 2012 · view the original in the archive · old links redirect here
<?php
$filename = "myservice.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
if(substr_count($contents,$_POST['name'])>0){
print "name already registered";
}else{
print "name doesnt exsist";
}
?>
<?php $filename = "myservice.txt"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); if(substr_count($contents,$_POST['name'])>0){ print "name already registered"; }else{ print "name doesnt exsist"; } ?>
thank u sir, dis code really working..