Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <?php
  2. if(!isset($_POST['logon']))
  3. {
  4. ?>
  5. <form action="" method="post">
  6. <input type="text" name="name" value="test">
  7. <button type="submit" name="logon" value="asd">asd</button>
  8. </form>
  9.  
  10. <?php
  11. }
  12. else
  13. {
  14. if(isset($_POST['name'])){
  15. //if(!isset($_SESSION['unity_wl_1'])) {
  16.  
  17. $sql = "INSERT INTO cw_whitelist_apps_gta
  18. (
  19. socialclub_id,
  20. steam_id,
  21. forumname,
  22. email,
  23. user_birthday,
  24. user_reallife,
  25. user_whyUnity,
  26. user_whyhere,
  27. char_name,
  28. char_gender,
  29. char_birthday,
  30. char_nationality,
  31. char_religion,
  32. char_blood,
  33. char_grow,
  34. char_schoolinfo,
  35. char_characteristics,
  36. char_future,
  37. stap,
  38. status
  39. ) VALUES (
  40. '0',
  41. '0',
  42. '0',
  43. '0',
  44. '0',
  45. '0',
  46. '0',
  47. '0',
  48. '0',
  49. '0',
  50. '0',
  51. '0',
  52. '0',
  53. '0',
  54. '0',
  55. '0',
  56. '0',
  57. '0',
  58. '1',
  59. '0'
  60. )";
  61. if ($conn->query($sql) === TRUE) {
  62. echo "true";
  63. $_SESSION['unity_wl_1'] = $username;
  64. } else {
  65. echo "Error: " . $sql . "<br>" . $conn->error;
  66. }
  67.  
  68. $conn->close();
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement