Guest User

Untitled

a guest
Jul 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * @author Jaybird
  5. * @copyright 2009
  6. */
  7.  
  8. if (!isset($_POST['submit'])) {
  9. echo '<input type="text" name ="name" value="Name" />' .
  10. '<input type="text" name ="email" value="Email" />' .
  11. '<input type="submit" name="submit" value="Submit"></form>';
  12. } else {
  13.  
  14. $fp = fopen('Log.txt', 'a');
  15. fwrite($fp, $_POST['email'] . " - " . $_POST['name']);
  16. fclose($fp);
  17.  
  18. }
  19.  
  20. ?>
Add Comment
Please, Sign In to add comment