Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

26 líneas
997 B

  1. <?php
  2. $pagetitle = "Add a Guild Wars account to track";
  3. include_once ('header.php');
  4. if (!empty($_POST['accemail'])) {
  5. $addacc = $con->prepare("INSERT INTO gwaccounts (userid, accemail) VALUES (?, ?)");
  6. $addacc->bind_param("is", $_SESSION['userid'], $_POST['accemail']);
  7. $addacc->execute();
  8. $addacc->close();
  9. echo 'New account added, returning to editor.';
  10. header ("Refresh:1; url=addaccounts.php");
  11. exit();
  12. }
  13. echo '<form action="addaccounts.php" method="post"><table>';
  14. echo '<caption>Add a new Guild Wars account e-mail</caption>';
  15. echo '<tr><td><input type="text" name="accemail" size="35" autofocus required></td></tr>';
  16. echo '</table><input type="submit" value="Add account"></form>';
  17. echo '<table border="1"><caption>Current Guild Wars accounts</caption>';
  18. echo '<tr><th>Account name</th></tr>';
  19. // grab account name from database and loop it in here as a read only bit
  20. echo '<br />Return to your <a href="index.php" class="navlink">user</a> page';
  21. include_once ('footer.php');
  22. ?>