ich habe mal eine frage ich möchte gerne eine homepage erstellen aber ich habe zwei probleme wenn man sich ein acc erstellt wird er nicht gespeichert ich habe es mit eine andere hp versucht da geht es
PHP
- <div class="main_header">Registrierung</div>
- <?php include('pages/register_activate.php');
- $db->loged($loged, true);
- if(!$_SESSION['ACCEPTED']) {
- if(isset($_GET['ACCEPTED'])) {
- $_SESSION['ACCEPTED'] = true;
- $_SESSION['REQUIRE_ACCEPT'] = false;
- header("Location: rejestracja.php");
- exit;
- } else {
- $_SESSION['REQUIRE_ACCEPT'] = true;
- header("Location: regulamin.php");
- exit;
- }
- }
- if(!$REGISTER_RUN) {
- echo ("<div style='text-align:center;'>Registrierung deaktiviert</div>");
- } else {
- ?>
- <span id="infok" style="display:block;padding-left:10px;"></span>
- <script type="text/javascript">
- var i = document.getElementById("infok");
- function try_captcha() {
- var a = setInterval(function(){
- if($('input#recaptcha_response_field').attr('id') == 'recaptcha_response_field') {
- //To prosty test logiczny. Skoro pobieram element po id i może istnieć bądź nie to jak jego id jest te same co pobieram
- //To chyba proste, że istnieje? ew. dajesz .eq(1) czy .eq(2), jak tam chcesz...
- $('input#recaptcha_response_field').css({
- 'color': 'black',
- 'textIndent':'5px'
- });
- clearInterval(a);
- }
- }, 20);
- }
- </script>
- <form action="rejestracja.php?register" method="POST" OnSubmit="this.register_btn.disabled='disabled'; if(register()) { return false;}" class="REGISTER_FORM">
- <table border="0" align="center" style="text-align:center;">
- <tr><td>Benutzername:</td></tr>
- <tr><td><input type="text" name="Login" class="longfield" placeholder="5-15 Zeichen, a-z i Ziffern" pattern="[a-zA-Z0-9][^ ęóżźńłąśĘÓŻŹŃŁĄŚ]{4,15}"></td></tr>
- <tr><td>Passwort:<font color="red">*</font>:</td></tr>
- <tr><td><input type="password" name="Password" class="longfield" pattern="[^ ęóżźńłąśĘÓŻŹŃŁĄŚ]{4,15}"></td></tr>
- <tr><td>Passwort bestättigen:<font color="red">*</font>:</td></tr>
- <tr><td><input type="password" name="ConfirmPassword" class="longfield" pattern="[^ ęóżźńłąśĘÓŻŹŃŁĄŚ]{4,15}"></td></tr>
- <tr><td>E-Mail-Adresse eingeben:</td></tr>
- <tr><td><input type="email" name="Email" class="longfield"></td></tr>
- <tr><td>Löschcode:</td></tr>
- <tr><td><input type="text" name="Code" maxlength="7" placeholder="7 Zeichen" pattern="[^ ęóżźńłąśĘÓŻŹŃŁĄŚ]{7}" class="longfield"></td></tr>
- <tr><td>Nicht vergessen:</td></tr>
- <tr><td style="width:318px;">
- <center><script src="https://www.google.com/recaptcha/api.js" async defer></script>
- <div class="g-recaptcha" data-sitekey="6Ldmk1sUAAAAAOrgOJf17VJQ5c-PgIh1k-52N5p5"></div>
- <noscript>
- <div>
- <div style="width: 302px; height: 422px; position: relative;">
- <div style="width: 302px; height: 422px; position: absolute;">
- <iframe src="https://www.google.com/recaptcha/api/fallback?k=6Ldmk1sUAAAAAOrgOJf17VJQ5c-PgIh1k-52N5p5"
- frameborder="0" scrolling="no"
- style="width: 302px; height:422px; border-style: none;">
- </iframe>
- </div>
- </div>
- <div style="width: 300px; height: 60px; border-style: none;
- bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;
- background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
- <textarea id="g-recaptcha-response" name="g-recaptcha-response"
- class="g-recaptcha-response"
- style="width: 250px; height: 40px; border: 1px solid #c1c1c1;
- margin: 10px 25px; padding: 0px; resize: none;" >
- </textarea>
- </div>
- </div>
- </noscript>
- <tr><td><center><button type="submit" name="register_btn">Registrieren</button><br>
- </table>
- </form>
- <?php } ?>
- <div class="footerek"></div>