Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="background3.css" />
- </head>
- <body>
- <?php
- $timeago=time();
- $_POST["heroname"];
- $_POST["herotype"];
- $_POST["sex"];
- $_POST["race"];
- $heroname=$_POST["heroname"];
- $herotype=$_POST["herotype"];
- $sex=$_POST["sex"];
- $race=$_POST["race"];
- $level=1;
- $totalxp=0;
- $xptogo=50;
- $xptotal=50;
- if ($herotype=="Recruit")
- {
- include("recruit.php");
- }
- else
- {
- if ($herotype=="Pupil")
- {
- include("pupil.php");
- }
- else
- {
- include("apprentice.php");
- }
- }
- include("startlocal.php");
- include("connect.php");
- $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)
- VALUES
- ('$heroname','$herotype','$startlocal','$level','$totalxp','$xptogo','$xptotal','$race','$sex','$fb_id','$strength','$fortitude','$spell_power','$resistance','$health','$maxHealth','$speed','$luck','$karma','$timeago','$timeago')";
- if (!mysql_query($sql,$con))
- {
- include("characterform.php");
- }
- else
- {
- if($herotype=="Pupil")
- {
- include("pupilform.php");
- }
- else
- {
- if($herotype=="Recruit");
- {
- include("recruitform.php");
- }
- else
- {
- include("apprenticeform.php");
- }
- }
- }
- mysql_close($con);
- ?>
- </body>
- </html>
Add Comment
Please, Sign In to add comment