Advertisement
Guest User

Untitled

a guest
May 5th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>Teh Games Questionaire</title>
  7. </head>
  8. <body>
  9.  
  10. <form method="post">
  11. <fieldset>
  12. <?php
  13. $host='cyberfyre.com.mysql';
  14. $user='cyberfyre_com';
  15. $password='SEt8iLhh';
  16. $databaseName='cyberfyre_com';
  17.  
  18. $conn = mysqli_connect($host, $user, $password, $databaseName);
  19. if ($conn->connect_error)
  20. {
  21. die("Connection failed: " . $conn->connect_error);
  22. }
  23.  
  24. echo "Connected successfully\r\n";
  25.  
  26. if (mysqli_ping($conn))
  27. {
  28. echo " | Pinged Successfully";
  29. }
  30. else
  31. {
  32. echo "Error: ". mysqli_error($conn);
  33. }
  34.  
  35. ?>
  36. </fieldset>
  37. </form>
  38.  
  39. <form method="post">
  40. <fieldset>
  41.  
  42. <form method="Name">
  43.  
  44. What is your name<br>
  45.  
  46. Name: <input type="text" name="Name"><br><br>
  47. </form>
  48.  
  49. <form method="Email">
  50.  
  51. What is your email?<br>
  52.  
  53. Email: <input type="text" name="Email"><br><br>
  54. </form>
  55.  
  56. <form method="Age">
  57.  
  58. What age range do you belong to?<br>
  59.  
  60. <input type="radio" name="Age" value="Under18"> Under 18.<br>
  61. <input type="radio" name="Age" value="18-25"> 18-25.<br>
  62. <input type="radio" name="Age" value="25-30"> 25-30.<br>
  63. <input type="radio" name="Age" value="30-35"> 30-35.<br>
  64. <input type="radio" name="Age" value="40-50"> 40-50.<br>
  65. <input type="radio" name="Age" value="50+"> 50+.<br><br>
  66. </form>
  67.  
  68. <form method="FavGenre">
  69. What is your favourite video-game genre?<br>
  70. <input type="radio" name="FavGenre" value="RPG"> Role Playing Game.<br>
  71. <input type="radio" name="FavGenre" value="Action"> Action.<br>
  72. <input type="radio" name="FavGenre" value="MMORPG"> Massive Multiplayer Online Role Playing Game.<br>
  73. <input type="radio" name="FavGenre" value="Strategy"> Strategy.<br>
  74. <input type="radio" name="FavGenre" value="Simulation"> Simulation.<br>
  75. <input type="radio" name="FavGenre" value="Adventure"> Adventure.<br>
  76. <input type="radio" name="FavGenre" value="Sports"> Sports.<br>
  77. <input type="radio" name="FavGenre" value="Action-Adventure"> Action-Adventure.<br><br>
  78. </form>
  79.  
  80. <form method="DeviceQ">
  81. What device do you usually play videogames on?<br>
  82. <input type="radio" name="DeviceQ" value="PC"> PC.<br>
  83. <input type="radio" name="DeviceQ" value="PS4"> Playstation 4.<br>
  84. <input type="radio" name="DeviceQ" value="XBOXONE"> Xbox One.<br>
  85. <input type="radio" name="DeviceQ" value="Wii U"> Nintendo Wii U.<br>
  86. <input type="radio" name="DeviceQ" value="3DS"> Nintendo 3DS.<br>
  87. <input type="radio" name="DeviceQ" value="Vita"> Playstation Vita<br><br>
  88.  
  89. </form>
  90.  
  91. <form method="SingOrMulti">
  92.  
  93. Which do you enjoy more: Single Player or Multiplayer?<br>
  94.  
  95. <input type="radio" name="SingOrMulti" value="Single-Player"> Single-Player.<br>
  96. <input type="radio" name="SingOrMulti" value="Multi-Player"> Multi-Player.<br><br>
  97. </form>
  98.  
  99. <form method="locOrOnline">
  100.  
  101. If you play multiplayer games, do you prefer local or online multiplayer?<br>
  102.  
  103. <input type="radio" name="locOrOnline" value="Online"> Online.<br>
  104. <input type="radio" name="locOrOnline" value="Local"> Local.<br><br>
  105. </form>
  106.  
  107. <form method="OpenWQ">
  108.  
  109. Do you prefer open world games or ones where the path is chosen for you?<br>
  110.  
  111. <input type="radio" name="OpenWQ" value="open"> Open World.<br>
  112. <input type="radio" name="OpenWQ" value="pathed"> Path is chosen for you.<br>
  113. <input type="radio" name="OpenWQ" value="notsure"> No Preference.<br><br>
  114. </form>
  115.  
  116. <form method="actionorLinear">
  117.  
  118. Do you prefer a game that reacts to your actions or one that is heavily linear?<br>
  119.  
  120. <input type="radio" name="actionorLinear" value="yes"> Reacts to my actions.<br>
  121. <input type="radio" name="actionorLinear" value="no"> One that is linear.<br>
  122. <input type="radio" name="actionorLinear" value="same"> No Preference.<br><br>
  123. </form>
  124.  
  125. <form method="challengeQ">
  126.  
  127. Do you prefer simple games or ones with a challenge?<br>
  128.  
  129. <input type="radio" name="challengeQ" value="Simple"> Simple.<br>
  130. <input type="radio" name="challengeQ" value="Challenging"> Challenging.<br><br>
  131. </form>
  132.  
  133. <form method="gameplayTimeQ">
  134.  
  135. How often do you spend playing games in each sitting?<br>
  136.  
  137. <input type="radio" name="gameplayTimeQ" value="<1 hr"> <1 hr.<br>
  138. <input type="radio" name="gameplayTimeQ" value="1-2 hrs"> 1-2 hrs.<br>
  139. <input type="radio" name="gameplayTimeQ" value="2-3 hrs"> 2-3 hrs.<br>
  140. <input type="radio" name="gameplayTimeQ" value="3-5 hrs"> 3-5 hrs.<br>
  141. <input type="radio" name="gameplayTimeQ" value="5+ hrs"> 5+ hrs.<br><br>
  142. </form>
  143.  
  144. <form method="JoshQ1">
  145.  
  146. What is more important to you gameplay or graphics?<br>
  147.  
  148. <input type="radio" name="JoshQ1" value="yes"> Gameplay.<br>
  149. <input type="radio" name="JoshQ1" value="no"> Graphics.<br><br>
  150. </form>
  151.  
  152. <form method="JoshQ2">
  153.  
  154. Do you prefer playing independent games or AAA titles?<br>
  155.  
  156. <input type="radio" name="JoshQ2" value="yes"> Independant.<br>
  157. <input type="radio" name="JoshQ2" value="no"> AAA.<br><br>
  158. </form>
  159.  
  160. <form method="JoshQ3">
  161.  
  162. Do you enjoy realistic simulation games or more fictional ones?<br>
  163.  
  164. <input type="radio" name="JoshQ3" value="yes"> Simulation.<br>
  165. <input type="radio" name="JoshQ3" value="no"> Fictional.<br><br>
  166. </form>
  167.  
  168. <form method="JoshQ4">
  169.  
  170.  
  171. Do you prefer first person or third person in game?<br>
  172.  
  173. <input type="radio" name="JoshQ4" value="yes"> First Person.<br>
  174. <input type="radio" name="JoshQ4" value="no"> Third Person.<br><br>
  175. </form>
  176.  
  177. <form method="mod1">
  178.  
  179. Have you ever modded a game, or seen a modded game(e.g. Skyrim, G-Mod)?<br>
  180.  
  181. <input type="radio" name="mod1" value="yes"> Yes.<br>
  182. <input type="radio" name="mod1" value="no"> No.<br><br>
  183. </form>
  184.  
  185. <form method="mod2">
  186.  
  187. Do you think modded games are good enough to buy a pc over console?<br>
  188.  
  189. <input type="radio" name="mod2" value="yes"> Yes.<br>
  190. <input type="radio" name="mod2" value="no"> No.<br><br>
  191. </form>
  192.  
  193. <form method="comp1">
  194.  
  195. Do you like “competetive games” ? e.g. DotA, CS:GO, Starcraft<br>
  196.  
  197. <input type="radio" name="comp1" value="yes"> Yes.<br>
  198. <input type="radio" name="comp1" value="no"> No.<br><br>
  199. </form>
  200.  
  201. <form method="cheatersQ">
  202.  
  203.  
  204. Have Cheaters/Hackers ever put you off playing game?<br>
  205.  
  206. <input type="radio" name="cheatersQ" value="yes"> Yes.<br>
  207. <input type="radio" name="cheatersQ" value="no"> No.<br><br>
  208. </form>
  209.  
  210. <form method="post">
  211. How many hours do you play games over the course of a week?<br>
  212. <input type="radio" name="WkTime" value="60+"> 60+ hours a week.<br>
  213. <input type="radio" name="WkTime" value="40-59"> 40-59 hours a week.<br>
  214. <input type="radio" name="WkTime" value="30-39"> 30-39 hours a week.<br>
  215. <input type="radio" name="WkTime" value="20-29"> 20-29 hours a week.<br>
  216. <input type="radio" name="WkTime" value="15-19"> 15-19 hours a week.<br>
  217. <input type="radio" name="WkTime" value="10-14"> 10-14 hours a week.<br>
  218. <input type="radio" name="WkTime" value="5-9"> 5-9 hours a week.<br>
  219. <input type="radio" name="WkTime" value="Less than 4"> Less than 4 hours a week.<br><br>
  220. </form>
  221.  
  222. <form method="post">
  223. Do you have any interest in purchasing DLC (Downloadable Content)?<br>
  224. <input type="radio" name="DLCInterest" value="Very Interested"> Very Interested.<br>
  225. <input type="radio" name="DLCInterest" value="Slightly Interested"> Slightly Interested.<br>
  226. <input type="radio" name="DLCInterest" value="disinterested"> Disinterested.<br>
  227. <input type="radio" name="DLCInterest" value="Slightly Interested"> Very disinterested.<br>
  228. <input type="radio" name="DLCInterest" value="Depends"> Depends on game.<br><br>
  229. </form>
  230.  
  231. <form method="post">
  232. Which platforms do you purchase most games from?<br>
  233. <input type="radio" name="GamePlatform" value="Retail"> Retail stores such as Game.<br>
  234. <input type="radio" name="GamePlatform" value="Online physical"> Physical Copies from online retailers.<br>
  235. <input type="radio" name="GamePlatform" value="online"> Online reatailers such as Steam or Green Man Gaming that provide digital copies.<br>
  236. <input type="radio" name="GamePlatform" value="Developer"> Purchase games straight from the developer.<br>
  237. <input type="radio" name="GamePlatform" value="Console marketplace"> Appropriate console marketplace, such as the Xbox live marketplace .<br>
  238. <input type="radio" name="GamePlatform" value="second hand"> from pre-owned sources such as friends or ebay.<br><br>
  239. </form>
  240.  
  241. <form method="post">
  242. Would you be willing to pay a small subscription fee to play a game?<br>
  243. <input type="radio" name="Subscription" value="Yes"> Yes.<br>
  244. <input type="radio" name="Subscription" value="No"> No.<br><br>
  245. </form>
  246.  
  247. <input type="submit" name="submit" value="Submit"><br>
  248.  
  249. </fieldset>
  250. </form>
  251.  
  252. <?php
  253. if (isset($_POST['submit']))
  254. {
  255. if(isset($_POST['Name']) /*and isset($_POST['Email']) and isset($_POST['Age']) and isset($_POST['FavGenre']) and isset($_POST['DeviceQ']) and isset($_POST['SingOrMulti']) and isset($_POST['locOrOnline']) and
  256. isset($_POST['OpenWQ']) and isset($_POST['actionorLinear']) and isset($_POST['challengeQ']) and isset($_POST['gameplayTimeQ']) and
  257. isset($_POST['JoshQ1']) and isset($_POST['JoshQ2']) and isset($_POST['JoshQ3']) and isset($_POST['JoshQ4']) and
  258. isset($_POST['mod1']) and isset($_POST['mod2']) and isset($_POST['comp1']) and isset($_POST['cheatersQ']) and
  259. isset($_POST['WkTime']) and isset($_POST['DLCInterest']) and isset($_POST['GamePlatform']) and isset($_POST['Subscription'])*/)
  260. {
  261. echo "You have entered: ".$_POST['Name']; // Displaying Selected Value
  262. }
  263. else
  264. {
  265. echo "You have missed questions";
  266. }
  267. }
  268. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement