Hamlog

  • Login
  • Signup


Set up your hamlog account:\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Username
Password
Confirm Password
Email Address
Name
QTH Locator
Type the 5 charcters here:
\n"; } else { if(!isset($_POST["pw"])) { die ("Don't try to reload the page over your browser!
Reload the page here!"); } $username=$_POST["username"]; $pw=$_POST["pw"]; $pw_cfrm=$_POST["pw_cfrm"]; $email=$_POST["email"]; $name=$_POST["name"]; $qloc=str_split($_POST["qth_loc"],2); $qth_loc=strtoupper($qloc[0]); $qth_loc.=$qloc[1]; $qth_loc.=strtolower($qloc[2]); $sign_confirm=$_POST["sign_confirm"]; $signup_conf=$_SESSION["signup_confirm"]; $md5_pw=md5($pw); if($pw!=$pw_cfrm) { die ("The passwords do not match!"); } if($sign_confirm!=$signup_conf) { die ("The verification code does not match!
Reload the page here!"); } require("def_mysql.inc"); mysql_query("INSERT INTO hamlog_users SET username='$username', password='$md5_pw', email='$email', name='$name', qth_loc='$qth_loc'",$conn); echo "

Welcome on hamlog, $name!

"; echo $_SESSION["signup_confirm"]; } ?>