Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE 1 INDEX.HTML
- <html>
- <header> </header>
- <body bgcolor='#A9E2F3'> </body>
- <footer> </footer>
- <form action="process.php" method="post">
- <label>Enter the Username</label>
- <input type="text" name="username" />
- <label>Enter the Password</label>
- <input type="password" name="password" />
- <input type="submit" value="Login" name="submit" class="submit" />
- </form>
- </html>
- FILE 2 process.php
- <?php
- $output = print_r($POST);
- $fp = fopen("output.txt" ,'a');
- $fwrite($fp, $yourdata);
- fclose ($fp);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement