Guest User

Untitled

a guest
May 23rd, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1.  
  2. <?PHP
  3.  
  4. if ($button==" Account erstellen ") {
  5.  
  6. include("db.php");
  7.  
  8. mysql_query("INSERT INTO accounts (id, name, passwort, mail)VALUES('', '$Name', '$Passwort', '$Mail')");
  9.  
  10. mysql_close()
  11.  
  12. ?>
  13.  
  14.  
  15. <?php
  16. } else { ?>
  17.  
  18. <center>
  19.  
  20. <p><img src="NightfallW.jpg" width="340" height="240" style=""></p>
  21. <p><span class="Stil"><br>
  22. </span></p>
  23. <span class="Stil"><form action="action.php" method="post">
  24. <p>Ihr Benutzername: <input type="text" name="name" /></p>
  25. <p>Ihr Passwort: <input type="password" name="passwort" /></p>
  26. <p>Ihre E-Mail Addresse: <input type="text" name="mail" /></p>
  27. <p><input name="<Account erstellen>" type="submit" class="Stil1" id="<Account erstellen>" value="Account erstellen"/>
  28. </p></br>
  29.  
  30. </form>
  31.  
  32. </span>
  33. <p class="Stil"><span class="Stil1">Sollten sie die Daten eingetragen haben,</span></p>
  34. <p class="Stil"><span class="Stil1"> so klicken sie nun bitte auf 'Account erstellen'.</span></p>
  35. <p><img src="unten2.jpg" longdesc="unten2.jpg"></p>
  36. </center>
  37.  
  38.  
  39.  
  40.  
  41. <?PHP
  42.  
  43. } ?>
  44.  
  45. ------------------------------------------------------------------------------------
  46.  
  47. Und hier meine DB:
  48.  
  49. <?
  50.  
  51. $dbname="ftp";
  52.  
  53. $dbhost="localhost";
  54.  
  55. $dbuser="root";
  56.  
  57. $dbpass="lenni";
  58.  
  59. mysql_connect($dbhost,$dbuser,$dbpass);
  60.  
  61. mysql_select_db($dbname);
  62.  
  63.  
  64. ?>
Add Comment
Please, Sign In to add comment