Register for your free account! | Forgot your password?

You last visited: Today at 10:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Homepage

Discussion on Homepage within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old 03/06/2011, 21:30   #16

 
iKyroja :>'s Avatar
 
elite*gold: 20
Join Date: May 2010
Posts: 2,792
Received Thanks: 1,988
Quote:
Originally Posted by yym3 View Post
So sieht ein Registrationsscript aus:

PHP Code:
<form method="post" action="">
Benutzername: <input type="text" name="loginName" /><br />
Passwort: <input type="password" name="passwort" /><br/>
Passwort Wiederholen: <input type="password" name="passwort2" /><br/>
<input type="submit" name="registrieren" value="Register" />
</form>


<?php

if(isset($_POST["registrieren"]) && $_POST["registrieren"] == "Register")
{

if(
$_POST["loginName"] == "" && $_POST["passwort"] == "" && $_POST["passwort2"] == "")
{
echo 
"Sie müssen alle Felder ausfüllen.";
}
else
{
if(
$_POST["passwort"] == $_POST["passwort2"])
{
$loschcode "1234567";
mysql_query("INSERT INTO account.account (login, password, social_id) VALUES ('".$_POST["loginName"]."', '".$_POST["passwort"]."', '".$loschcode.')");
echo "Registrierung erfolgreich!";
}
else
{
echo "Die Passwöärter stimmen nicht überein";
}
}
}

?>
Auf die Schnelle getippt, unübersichtlich unsave.
PHP Code:
mysql_query("INSERT INTO account.account (login, password, social_id) VALUES ('".$_POST["loginName"]."', '".$_POST["passwort"]."', '1234567')"); 
Ich würde es so machen, die Variable ist umständlich
iKyroja :> is offline  
Old 03/06/2011, 21:42   #17
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,352
Received Thanks: 788
Quote:
Originally Posted by iKyroja :> View Post
PHP Code:
mysql_query("INSERT INTO account.account (login, password, social_id) VALUES ('".$_POST["loginName"]."', '".$_POST["passwort"]."', '1234567')"); 
Ich würde es so machen, die Variable ist umständlich
jo ist auch ne möglichkeit, ist ja ansich aber egal^^. Mit der Variable ist es etwas übersichtliche, und da er ja anscheinend keine KEnntnisse hat evtl. b esser.
yym3 is offline  
Old 03/07/2011, 14:25   #18
 
elite*gold: 281
Join Date: Aug 2010
Posts: 1,502
Received Thanks: 447
Quote:
jo ist auch ne möglichkeit, ist ja ansich aber egal^^. Mit der Variable ist es etwas übersichtliche, und da er ja anscheinend keine KEnntnisse hat evtl. b esser.
Stimmt aber nur bei der Regi weil ich css angepasst hab usw. nur fehlt nur noch php.Html hab ich fertig
.iXream. is offline  
Reply

Tags
metin2 pserver erstellen


Similar Threads Similar Threads
[Service]Let me construct your homepage / Lass mich deine Homepage erstellen
06/16/2011 - elite*gold Trading - 23 Replies
English: Hello Com! I´m now ready with my schooling and have till oktober much time (Then begins my civilian service). I thought i can help those people to construct their homepage who can´t do it by them self. When you´re interested in my previous "projects" look here: LTSP-Server Adressverwaltung Dollart Fahrschule
[Homepage Release]Imba Homepage by TribalCriser [Top Desing , Viele Funktionen etc]
10/21/2010 - Metin2 PServer Guides & Strategies - 116 Replies
Hallo, Ich stelle euch hier eine neue Generation der Metin2 Privat Server Homepages zur verfügung, die Homepage ist einfach Gut sie bietet viele Funtkionen die fast keine Public Homepage bietet sie bietet noch mehr Funktionen als bekannt sind, ein Top Desing ist auch dabei. Informationen vorneweg (Wichtig: Bitte Lesen!):



All times are GMT +1. The time now is 10:26.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.