Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 

25 rader
1.1 KiB

  1. <?php
  2. $pagetitle = "Account options";
  3. include_once ('header.php');
  4. if (!empty($_POST['usermail'])) {
  5. //this section contains code to update the users e-mail address, maybe via an include?
  6. include_once ('includes/update-email.php');
  7. } else {
  8. //should get rid of this whole else statement, or use it to display an error?
  9. echo 'this should probably be the !empty section instead<br />';
  10. echo 'the post usermail vaiable should be blank: <b>' . $_POST['usermail'] . '</b> <- Is there a blank spot to the left?<br />';
  11. }
  12. echo '<h3>Change e-mail and / or password</h3><br /><br />';
  13. // listing all session variables currently set for debugging purposes
  14. echo '<pre>';
  15. var_dump($_SESSION);
  16. echo '</pre><br /><br />';
  17. // delete the above 3 lines when done
  18. echo '<form action="preferences.php" method="post"><table border="1">';
  19. echo '<caption>Update e-mail address</caption>';
  20. echo '<tr><td><input type="text" name="usermail" value="' . $_SESSION['usermail'] . '"></td><td><input type="submit" value="Update e-mail"></td></tr>';
  21. echo '</table></form><br />';
  22. include_once ('footer.php');
  23. ?>