basic-php-12-delete-account.php / php
<?php include "auth_user.inc.php"; include "conn.inc.php"; if (isset(_POST['submit'] == "Yes") { _SESSION['user_logged'] . "' AND password = (PASSWORD('" . result_delete = mysql_query(_SESSION['user_logged'] = ""; <br>"; echo "(If you're browser doesn't support this, " . "<a href=\"index.php\">click here</a>)"; die(); } else { ?> <html> <head> <title>Beginning PHP5, Apache and MySQL</title> </head> <body> <p> Are you sure you want to delete your account?<br> There is no way to retrieve your account once you confirm!<br> <form action="delete_account.php" method="post"> <input type="submit" name="submit" value="Yes"> <input type="button" value=" No " onclick="history.go(-1);"> </form> </p> </body> </html> <?php } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.