Guest User

Untitled

a guest
May 23rd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="background3.css" />
  4. </head>
  5. <body>
  6.  
  7. <?php
  8.  
  9. $timeago=time();
  10.  
  11. $_POST["heroname"];
  12. $_POST["herotype"];
  13. $_POST["sex"];
  14. $_POST["race"];
  15.  
  16. $heroname=$_POST["heroname"];
  17. $herotype=$_POST["herotype"];
  18. $sex=$_POST["sex"];
  19. $race=$_POST["race"];
  20. $level=1;
  21. $totalxp=0;
  22. $xptogo=50;
  23. $xptotal=50;
  24.  
  25. if ($herotype=="Recruit")
  26. {
  27. include("recruit.php");
  28. }
  29. else
  30. {
  31. if ($herotype=="Pupil")
  32. {
  33. include("pupil.php");
  34. }
  35. else
  36. {
  37. include("apprentice.php");
  38. }
  39. }
  40.  
  41. include("startlocal.php");
  42.  
  43. include("connect.php");
  44.  
  45. $sql="INSERT INTO Heroes (Heroname, Herotype, Location, Level, TotalXP, XPtogo, XPTotal, Race, Sex, UserID, Strength, Fortitude, Spellpower, Resistance, Health, MaxHealth, Speed, Luck, Karma, Healthstamp, Incomestamp)
  46. VALUES
  47. ('$heroname','$herotype','$startlocal','$level','$totalxp','$xptogo','$xptotal','$race','$sex','$fb_id','$strength','$fortitude','$spell_power','$resistance','$health','$maxHealth','$speed','$luck','$karma','$timeago','$timeago')";
  48.  
  49. if (!mysql_query($sql,$con))
  50. {
  51. include("characterform.php");
  52. }
  53. else
  54. {
  55. if($herotype=="Pupil")
  56. {
  57. include("pupilform.php");
  58. }
  59. else
  60. {
  61. if($herotype=="Recruit");
  62. {
  63. include("recruitform.php");
  64. }
  65. else
  66. {
  67. include("apprenticeform.php");
  68. }
  69. }
  70. }
  71.  
  72. mysql_close($con);
  73.  
  74. ?>
  75.  
  76. </body>
  77. </html>
Add Comment
Please, Sign In to add comment