Need help, Please help me!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help, Please help me!

    Im using a service. Dat service data save at myservice.txt file. Service field r 1.name 2.country 3.mobile no.

    Now, how to stop same data submiting by user.

    Or, how to show user name already exits! Go back & write another name.

    #2
    PHP Code:
    <?php
    $filename 
    "myservice.txt";
    $handle fopen($filename"r");
    $contents fread($handlefilesize($filename));
    fclose($handle);
    if(
    substr_count($contents,$_POST['name'])>0){
    print 
    "name already registered";
    }else{
    print 
    "name doesnt exsist";
    }
    ?>

    Comment


      #3
      Originally posted by something else View Post
      PHP Code:
      <?php
      $filename 
      "myservice.txt";
      $handle fopen($filename"r");
      $contents fread($handlefilesize($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..

      Comment

      Working...
      X