Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?PHP
- if ($button==" Account erstellen ") {
- include("db.php");
- mysql_query("INSERT INTO accounts (id, name, passwort, mail)VALUES('', '$Name', '$Passwort', '$Mail')");
- mysql_close()
- ?>
- <?php
- } else { ?>
- <center>
- <p><img src="NightfallW.jpg" width="340" height="240" style=""></p>
- <p><span class="Stil"><br>
- </span></p>
- <span class="Stil"><form action="action.php" method="post">
- <p>Ihr Benutzername: <input type="text" name="name" /></p>
- <p>Ihr Passwort: <input type="password" name="passwort" /></p>
- <p>Ihre E-Mail Addresse: <input type="text" name="mail" /></p>
- <p><input name="<Account erstellen>" type="submit" class="Stil1" id="<Account erstellen>" value="Account erstellen"/>
- </p></br>
- </form>
- </span>
- <p class="Stil"><span class="Stil1">Sollten sie die Daten eingetragen haben,</span></p>
- <p class="Stil"><span class="Stil1"> so klicken sie nun bitte auf 'Account erstellen'.</span></p>
- <p><img src="unten2.jpg" longdesc="unten2.jpg"></p>
- </center>
- <?PHP
- } ?>
- ------------------------------------------------------------------------------------
- Und hier meine DB:
- <?
- $dbname="ftp";
- $dbhost="localhost";
- $dbuser="root";
- $dbpass="lenni";
- mysql_connect($dbhost,$dbuser,$dbpass);
- mysql_select_db($dbname);
- ?>
Add Comment
Please, Sign In to add comment