Bisher habe ich einen solchen CodeWie eine vollständige Iframe Anmeldung/Login/Userpanel
<form action="register.php" target="login" type=post>
<label for="name">Account </label><br><br>
<input type=text id="name" name="account" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br><br>
<label for="name">Password</label><br><br>
<input type=text id="name" name="password" size=20 maxlength=<?php Echo MaxNameLength; ?> /><br><br>
<button type=submit>Register</button>
</form>
Ich legte es in einem IFrame haben zu machen, aber wenn ich versuche, PHP mit einem solchen Code zu verwenden:
<?php
If (IsSet($_GET["account"]["password"])) { $Account = $_GET["account"]; $Password = $_GET["password"];
$AllRight = True;
For ($I=0; $I<StrLen(WrongChars); $I++) {
If (StrPos($Account, SubStr(WrongChars,$I,1))) {
Echo "<p>Your Name musn't contain the char \"".SubStr(WrongChars,$I,1)."\"</p>";
$AllRight = False;
}
}
If (file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
Echo "<p>This Account already exists!</p>";
$AllRight = False;
}
If ($AllRight) {
$Text .= "$Password ";
File_Put_Contents (AccountFilesPath.$Account.AccountFilesEnding, $Text);
if(!file_exists(AccountFilesPath.$Account.AccountFilesEnding)) {
echo "<p>Error during account cration!</p>";
}
Echo "<p>This Account is created succesfully!</p>";
}
}
?>
noch die Antwort im bekommen ist eine neue Registrierung Seite ohne Arbeit getan ... Ich möchte meine iframe einzeln Textdateien wie (user1.txt) mit ($ Passwort) innerhalb zu registrieren. Zusammen mit einem Link zum Login und bei der Anmeldung ein Benutzer Control Panel haben.
was zum Teufel ist diese Sprache? Funktionen in PHP beginnen nicht mit Großbuchstaben – Phiter
@PhiterFernandes PHP-Funktionen sind Groß-und Kleinschreibung, und höchstwahrscheinlich 'WrongChars' und' AccountFilesPath' definiert Konstante, es ist nur nicht in diesem Code hinzugefügt die OP gebucht. – Ghost
hahaha, das ist wirklich komisch XD – Phiter