login  Naam:   Wachtwoord: 
Registreer je!
 Forum

Hoe kan dit:S

Offline tomk - 03/07/2005 10:04
Avatar van tomkASP interesse Ej mensen. Bij mijn registratie post hij niet meer in de database en deet dat altijd wel:s . Hier mijn script:
  1. <?
  2.  
  3. include("functies.php");
  4.  
  5. $var = "iedereen";
  6. $toegang = beveiliging($var);
  7. $ban = ban();
  8.  
  9. if(!$toegang == 0) {
  10. if(!$ban == 1) {
  11. ?><html>
  12. <script language="javascript">
  13. if (document.images) {
  14.  
  15. image1 = new Image
  16. image2 = new Image
  17. image3 = new Image
  18. image4 = new Image
  19. image5 = new Image
  20. image6 = new Image
  21. image7 = new Image
  22. image8 = new Image
  23. image9 = new Image
  24. image10 = new Image
  25. image11 = new Image
  26. image12 = new Image
  27. image13 = new Image
  28. image14 = new Image
  29. image15 = new Image
  30. image16 = new Image
  31. image17 = new Image
  32. image18 = new Image
  33. image19 = new Image
  34. image20 = new Image
  35. image21 = new Image
  36. image22 = new Image
  37. image23 = new Image
  38. image24 = new Image
  39. image25 = new Image
  40.  
  41.  
  42. image1.src = "http://www.carriere-manager.nl/images/vlaggen/nl.gif"
  43. image2.src = "http://www.carriere-manager.nl/images/vlaggen/en.gif"
  44. image3.src = "http://www.carriere-manager.nl/images/vlaggen/it.gif"
  45. image4.src = "http://www.carriere-manager.nl/images/vlaggen/du.gif"
  46. image5.src = "http://www.carriere-manager.nl/images/vlaggen/fa.gif"
  47. image6.src = "http://www.carriere-manager.nl/images/vlaggen/be.gif"
  48. image7.src = "http://www.carriere-manager.nl/images/vlaggen/sp.gif"
  49. image8.src = "http://www.carriere-manager.nl/images/vlaggen/arg.gif"
  50. image9.src = "http://www.carriere-manager.nl/images/vlaggen/aus.gif"
  51. image10.src = "http://www.carriere-manager.nl/images/vlaggen/bra.gif"
  52. image11.src = "http://www.carriere-manager.nl/images/vlaggen/bul.gif"
  53. image12.src = "http://www.carriere-manager.nl/images/vlaggen/ch.gif"
  54. image13.src = "http://www.carriere-manager.nl/images/vlaggen/cro.gif"
  55. image14.src = "http://www.carriere-manager.nl/images/vlaggen/den.gif"
  56. image15.src = "http://www.carriere-manager.nl/images/vlaggen/fin.gif"
  57. image16.src = "http://www.carriere-manager.nl/images/vlaggen/griek.gif"
  58. image17.src = "http://www.carriere-manager.nl/images/vlaggen/jap.gif"
  59. image18.src = "http://www.carriere-manager.nl/images/vlaggen/mex.gif"
  60. image19.src = "http://www.carriere-manager.nl/images/vlaggen/oost.gif"
  61. image20.src = "http://www.carriere-manager.nl/images/vlaggen/por.gif"
  62. image21.src = "http://www.carriere-manager.nl/images/vlaggen/rus.gif"
  63. image22.src = "http://www.carriere-manager.nl/images/vlaggen/wal.gif"
  64. image23.src = "http://www.carriere-manager.nl/images/vlaggen/zkor.gif"
  65. image24.src = "http://www.carriere-manager.nl/images/vlaggen/scot.gif"
  66. image25.src = "http://www.carriere-manager.nl/images/vlaggen/indo.gif"
  67.  
  68. }
  69. </script> <head>
  70. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  71. <title></title><body>
  72. <form method="post">
  73. <table width="330" cellspacing="0" cellpadding="0">
  74. <tr>
  75. <td width="82">&nbsp;</td>
  76. <td width="92"><strong>Login gegevens</strong></td>
  77. </tr>
  78. <tr>
  79. <td>Login:</td>
  80. <td><input name="login" type="text" id="login2"></td>
  81. </tr>
  82. <tr>
  83. <td>Wachtwoord:</td>
  84. <td><input name="wachtwoord" type="password" id="wachtwoord3"></td>
  85. </tr>
  86. <tr>
  87. <td>email:</td>
  88. <td><input name="email" type="text" id="email"></td>
  89. </tr>
  90. <tr>
  91. <td>&nbsp;</td>
  92. <td><strong>Persoonlijke gegevens</strong></td>
  93. </tr>
  94. <tr>
  95. <td>Voornaam:</td>
  96. <td><input name="voornaam" type="text" id="voornaam2"></td>
  97. </tr>
  98. <tr>
  99. <td>Achternaam:</td>
  100. <td><input name="achternaam" type="text" id="achternaam2"></td>
  101. </tr>
  102. <tr>
  103. <td>Geboortedatum:</td>
  104. <td><select name="dag" id="dag">
  105. <option selected>1</option>
  106. <option>2</option>
  107. <option>3</option>
  108. <option>4</option>
  109. <option>5</option>
  110. <option>6</option>
  111. <option>7</option>
  112. <option>8</option>
  113. <option>9</option>
  114. <option>10</option>
  115. <option>11</option>
  116. <option>12</option>
  117. <option>13</option>
  118. <option>14</option>
  119. <option>15</option>
  120. <option>16</option>
  121. <option>17</option>
  122. <option>18</option>
  123. <option>19</option>
  124. <option>20</option>
  125. <option>21</option>
  126. <option>22</option>
  127. <option>23</option>
  128. <option>24</option>
  129. <option>25</option>
  130. <option>26</option>
  131. <option>27</option>
  132. <option>28</option>
  133. <option>29</option>
  134. <option>30</option>
  135. <option>31</option>
  136. </select>
  137. <select name="maand" id="maand">
  138. <option selected>Januari</option>
  139. <option>Februari</option>
  140. <option>Maart</option>
  141. <option>April</option>
  142. <option>Mei</option>
  143. <option>Juni</option>
  144. <option>Juli</option>
  145. <option>Augustes</option>
  146. <option>September</option>
  147. <option>October</option>
  148. <option>November</option>
  149. <option>December</option>
  150. </select>
  151. <select name="jaar" id="jaar">
  152. <option selected>1930</option>
  153. <option>1931</option>
  154. <option>1932</option>
  155. <option>1933</option>
  156. <option>1934</option>
  157. <option>1935</option>
  158. <option>1936</option>
  159. <option>1937</option>
  160. <option>1938</option>
  161. <option>1939</option>
  162. <option>1940</option>
  163. <option>1941</option>
  164. <option>1942</option>
  165. <option>1943</option>
  166. <option>1944</option>
  167. <option>1945</option>
  168. <option>1946</option>
  169. <option>1947</option>
  170. <option>1948</option>
  171. <option>1949</option>
  172. <option>1950</option>
  173. <option>1951</option>
  174. <option>1952</option>
  175. <option>1953</option>
  176. <option>1954</option>
  177. <option>1955</option>
  178. <option>1956</option>
  179. <option>1957</option>
  180. <option>1958</option>
  181. <option>1959</option>
  182. <option>1960</option>
  183. <option>1961</option>
  184. <option>1962</option>
  185. <option>1963</option>
  186. <option>1964</option>
  187. <option>1965</option>
  188. <option>1966</option>
  189. <option>1967</option>
  190. <option>1968</option>
  191. <option>1969</option>
  192. <option>1970</option>
  193. <option>1971</option>
  194. <option>1972</option>
  195. <option>1973</option>
  196. <option>1974</option>
  197. <option>1975</option>
  198. <option>1976</option>
  199. <option>1977</option>
  200. <option>1978</option>
  201. <option>1979</option>
  202. <option>1980</option>
  203. <option>1981</option>
  204. <option>1982</option>
  205. <option>1983</option>
  206. <option>1984</option>
  207. <option>1985</option>
  208. <option>1986</option>
  209. <option>1987</option>
  210. <option>1988</option>
  211. <option>1989</option>
  212. <option>1990</option>
  213. <option>1991</option>
  214. <option>1992</option>
  215. <option>1993</option>
  216. <option>1994</option>
  217. <option>1995</option>
  218. <option>1996</option>
  219. <option>1997</option>
  220. <option>1998</option>
  221. <option>1999</option>
  222. <option>2000</option>
  223. <option>2001</option>
  224. <option>2002</option>
  225. <option>2003</option>
  226. <option>2004</option>
  227. <option>2005</option>
  228. </select> </td>
  229. </tr>
  230. <tr>
  231. <td>Adres+Nr:</td>
  232. <td><input name="adres" type="text" id="adres2"></td>
  233. </tr>
  234. <tr>
  235. <td>Plaats:</td>
  236. <td><input name="plaats" type="text" id="plaats2"></td>
  237. </tr>
  238. <tr>
  239. <td>Land:</td>
  240. <td><select name="afkomst" id="afkomst">
  241. <option selected>Ik kom uit</option>
  242. <option>Nederland</option>
  243. <option>Belgi&euml;</option>
  244. <option>Nederlandse Antillen</option>
  245. <option>Suriname</option>
  246. <option>Ander land</option>
  247. </select></td>
  248. </tr>
  249. <tr>
  250. <td>&nbsp;</td>
  251. <td><strong>Club gegevens</strong></td>
  252. </tr>
  253. <tr>
  254. <td>Clubnaam:</td>
  255. <td><input name="clubnaam" type="text" id="clubnaam2"></td>
  256. </tr>
  257. <tr>
  258. <td>Land:</td>
  259. <td><select name="land" id="select">
  260. <option value="nl" selected onMouseDown="document.button.src=image1.src">Nederland
  261. </option>
  262. <option value="en" onMouseover="document.button.src=image2.src">Engeland
  263. </option>
  264. <option value="it" onMouseover="document.button.src=image3.src">Italië
  265. </option>
  266. <option value="du" onMouseover="document.button.src=image4.src">Duitsland
  267. </option>
  268. <option value="fa" onMouseover="document.button.src=image5.src">Frankrijk
  269. </option>
  270. <option value="be" onMouseover="document.button.src=image6.src">België
  271. </option>
  272. <option value="sp" onMouseover="document.button.src=image7.src">Spanje
  273. </option>
  274. <option value="arg" onMouseover="document.button.src=image8.src">Argentinië
  275. </option>
  276. <option value="aus" onMouseover="document.button.src=image9.src">Australië
  277. </option>
  278. <option value="bra" onMouseover="document.button.src=image10.src">Brazilië
  279. </option>
  280. <option value="bul" onMouseover="document.button.src=image11.src">Bulgarije
  281. </option>
  282. <option value="ch" onMouseover="document.button.src=image12.src">Tsjechië
  283. </option>
  284. <option value="cro" onMouseover="document.button.src=image13.src">Croatie
  285. </option>
  286. <option value="den" onMouseover="document.button.src=image14.src">Denemarken
  287. </option>
  288. <option value="fin" onMouseover="document.button.src=image15.src">Finland
  289. </option>
  290. <option value="griek" onMouseover="document.button.src=image16.src">Griekenland
  291. </option>
  292. <option value="jap" onMouseover="document.button.src=image17.src">Japan
  293. </option>
  294. <option value="mex" onMouseover="document.button.src=image18.src">Mexico
  295. </option>
  296. <option value="oost" onMouseover="document.button.src=image19.src">Oostenrijk
  297. </option>
  298. <option value="por" onMouseover="document.button.src=image20.src">Portugal
  299. </option>
  300. <option value="rus" onMouseover="document.button.src=image21.src">Rusland
  301. </option>
  302. <option value="wal" onMouseover="document.button.src=image22.src">Wales
  303. </option>
  304. <option value="zkor" onMouseover="document.button.src=image23.src">Zuid-Korea
  305. </option>
  306. <option value="scot" onMouseover="document.button.src=image24.src">Scotland
  307. </option>
  308. <option value="indo" onMouseover="document.button.src=image25.src">Indonesie
  309. </option>
  310. </select> <img alt="image" src="http://www.carriere-manager.nl/images/vlaggen/nl.gif" name="button" width="18" height="12" />
  311. </td>
  312. </tr>
  313. <tr>
  314. <td>Logo v/d Club:</td>
  315. <td><input name="logoclub" type="text" id="logoclub2" value="http://"></td>
  316. </tr>
  317. <tr>
  318. <td>&nbsp;</td>
  319. <td><strong>Extra Gegevens</strong></td>
  320. </tr>
  321. <tr>
  322. <td>Avatar:</td>
  323. <td><input name="avatar" type="text" id="avatar3" value="http://"></td>
  324. </tr>
  325. <tr>
  326. <td>Motto:</td>
  327. <td><textarea name="motto" cols="30" rows="5" id="textarea"></textarea></td>
  328. </tr>
  329. <tr>
  330. <td>Hoe heb je van Carriere-Manager gehoord?</td>
  331. <td><select name="select">
  332. <option selected>Kies optie</option>
  333. <option>Via een vriend van mij</option>
  334. <option>Via een internet site</option>
  335. <option>Via een magezine</option>
  336. <option>Via een zoekmachine</option>
  337. <option>Anders</option>
  338. </select></td>
  339. </tr>
  340. <tr>
  341. <td>&nbsp;</td>
  342. <td><input type="submit" name="Submit" value="Registreer Nu!">
  343. <input type="reset" name="Submit2" value="Reset Gegevens"></td>
  344. </tr>
  345. </table>
  346. <strong><font color="#FF0000"><em>*Vul Alles goed in!
  347. </em></font></strong>
  348. <p>&nbsp; </p>
  349. </form>
  350. <?
  351. if(isset($_POST['Submit'])) {
  352. if($_POST['login'] == "" || $_POST['wachtwoord'] == "") {
  353. echo "Gelieve alle velden in te vullen!";
  354. } else {
  355. $rg_sql = "INSERT INTO leden (id, voornaam, achternaam, email, clubnaam, land, afkomst, logoclub, motto, leeftijd, adres, plaats, avatar, login, wachtwoord, punten, geld, cmstaff, moderator, ervaring) VALUES ('', '".$_POST['voornaam']."', '".$_POST['achternaam']."', '".$_POST['email']."', '".$_POST['clubnaam']."', '".$_POST['land']."', '".$_POST['afkomst']."', '".$_POST['logoclub']."', '".$_POST['motto']."', '".$_POST['leeftijd']."', '".$_POST['adres']."', '".$_POST['plaats']."', '".$_POST['avatar']."', '".$_POST['login']."', '".md5($_POST['wachtwoord'])."', '0', '500000', '0', '0', '0')";
  356. mysql_query($rg_sql);
  357. echo "Uw account is succesvol geregistreerd! U kunt nu inloggen. Veel plezier op Carriere-Manager!";
  358. }
  359. }
  360. ?>
  361. </body>
  362. </html>
  363. <?
  364. } else {
  365. $sql = "SELECT * FROM ban WHERE ip='".$_SERVER['REMOTE_ADDR']."'";
  366. $res = mysql_query($sql);
  367. $fet = mysql_fetch_assoc($res);
  368. $mes = $fet['mes'];
  369. echo $mes;
  370. }
  371. } else {
  372. echo "U bent niet bevoegd om deze pagina te bekijken";
  373. }
  374. ?>
  375. <br>
  376. <br>
  377. <br><center>
  378. </center><br><font size="1">
  379. <div align="right"></div>
  380. </font><br></td><td width="120">
  381. <table border="0" height="348" width="100%">
  382.  
  383. </tr><tr>
  384. <td align="center">&nbsp;</td>
  385. </tr><tr>
  386. <td align="center">&nbsp;</td>
  387. </tr></tbody></table></td><td width="20">&nbsp;</td></tr></tbody></table></td></tr></tbody></table></td></tr><tr height="20">
  388.  
  389. </center></td></tr></tbody></table></center></td></tr></tbody></table></td></tr></tbody></table></body></html>


Bedankt voor jullie hulp 

4 antwoorden

Gesponsorde links
Offline MechaVore - 03/07/2005 10:09
Avatar van MechaVore Gouden medaille

PHP gevorderde
verander regel 358 is met
mysql_query($rg_sql)or die(mysql_error());
Dan kan je zien of hij wel bij de query komt en of er wat fout gaat ..
Offline tomk - 03/07/2005 10:14
Avatar van tomk ASP interesse Hej bedankt heb het al^^ Heel klein foutje;-) Toch bedankt. MAar dan had ik nog een vraag. Hoe doe ik dan dat ik zeg maar de gegevens in nog een andere tabel wil zetten? zo:
  1. <?
  2. if(isset($_POST['Submit'])) {
  3. if($_POST['login'] == "" || $_POST['wachtwoord'] == "") {
  4. echo "Gelieve alle velden in te vullen!";
  5. } else {
  6. $rg_sql = "INSERT INTO leden (id, voornaam, achternaam, email, clubnaam, land, afkomst, logoclub, motto, leeftijd, adres, plaats, avatar, login, wachtwoord, punten, geld, cmstaff, moderator, ervaring) VALUES ('', '".$_POST['voornaam']."', '".$_POST['achternaam']."', '".$_POST['email']."', '".$_POST['clubnaam']."', '".$_POST['land']."', '".$_POST['afkomst']."', '".$_POST['logoclub']."', '".$_POST['motto']."', '".$_POST['leeftijd']."', '".$_POST['adres']."', '".$_POST['plaats']."', '".$_POST['avatar']."', '".$_POST['login']."', '".md5($_POST['wachtwoord'])."', '0', '500000', '0', '0', '0')";
  7. $rg_sql2 = "INSERT INTO dt_leden (id, voornaam, achternaam, email, clubnaam, land, afkomst, logoclub, motto, leeftijd, adres, plaats, avatar, login, wachtwoord, punten, geld, cmstaff, moderator, ervaring) VALUES ('', '".$_POST['voornaam']."', '".$_POST['achternaam']."', '".$_POST['email']."', '".$_POST['clubnaam']."', '".$_POST['land']."', '".$_POST['afkomst']."', '".$_POST['logoclub']."', '".$_POST['motto']."', '".$_POST['leeftijd']."', '".$_POST['adres']."', '".$_POST['plaats']."', '".$_POST['avatar']."', '".$_POST['login']."', '".md5($_POST['wachtwoord'])."', '0', '500000', '0', '0', '0')";
  8. mysql_query($rg_sql)or die(mysql_error());
  9. mysql_query($rg_sql2)or die(mysql_error());
  10. echo "Uw account is succesvol geregistreerd! U kunt nu inloggen. Veel plezier op Carriere-Manager!";
  11. }
  12. }
  13. ?>
Offline MechaVore - 03/07/2005 10:34
Avatar van MechaVore Gouden medaille

PHP gevorderde
ja .
Offline tomk - 03/07/2005 10:38
Avatar van tomk ASP interesse Oké bedankt:!: 
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2025 Sitemasters.be - Regels - Laadtijd: 0.214s