Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @author Jaybird
- * @copyright 2009
- */
- if (!isset($_POST['submit'])) {
- echo '<input type="text" name ="name" value="Name" />' .
- '<input type="text" name ="email" value="Email" />' .
- '<input type="submit" name="submit" value="Submit"></form>';
- } else {
- $fp = fopen('Log.txt', 'a');
- fwrite($fp, $_POST['email'] . " - " . $_POST['name']);
- fclose($fp);
- }
- ?>
Add Comment
Please, Sign In to add comment