SHARE
TWEET

Untitled

a guest Jun 8th, 2017 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. Define('ID_LEN',5);
  3.  
  4. // ODBC
  5. $DB = "KN_Online"
  6. $User = "Knight"
  7. $Pass = "Knight"
  8. $msconnect=odbc_connect("$DB","$User","$Pass");
  9.  
  10. // Checks To See If Anything Is Posted
  11. if(isset($_POST))
  12.  
  13. // Login Info
  14. $login = sanitize($_POST['userid'],5);
  15.             $pw = sanitize($_POST['pass1'],5);
  16.             $c_pw =sanitize($_POST['pass2'],5);
  17.             $socNo = sanitize($_POST['charsil'],4);
  18.             $socNo2 = sanitize($_POST['charsil1'],4);
  19.             $email = sanitize($_POST['email'],25);
  20.             $email2 = sanitize($_POST['email1'],25);
  21.  
  22. // Buttons, Text.
  23. <form action="Register.php" method="post">
  24. ID: <input type="text" name="userid" />
  25. Password: <input type="text" name="pass1" />
  26. Confirm Passowrd: <input type="text" name="pass2" />
  27. Security Code: <input type="text" name="charsil" />
  28. Confirm Security Code: <input type="text" name="charsil1" />
  29. Email: <input type="text" name="email" />
  30. Confirm Email: <input type="text" name="email1" />
  31.  
  32. // Error Codes
  33. Error_Report (E_ALL ^ E_USER_NOTICE);
  34.  
  35. if ($pw != $c_pw) {
  36. echo 'Password Confirmed'
  37.  
  38. if (!empty($login)
  39. echo 'Fill In Login Field'
  40.  
  41. if (!empty($pw) && !empty($c_pw)
  42. echo 'Fill in Password Field'
  43.  
  44. if (!empty($socNo) && !empty($socNo2)
  45. echo 'Fill In Security Code Field'
  46.  
  47. if (!empty($email) && !empty($email2)
  48. echo 'Fill In Email Field'
  49.  
  50. //Registration
  51. $msquery="INSERT INTO tb_user(strACcountID, strPasswd, strSocNo, Email) VALUES ('$login','$pw','$socNo','$email') ";
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. </form>
  61. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top