Ankündigung

Einklappen
Keine Ankündigung bisher.

Hilfe beim Select und option

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Hilfe beim Select und option

    hallo Leute habe ein kleines problem mit dem select und option wenn ich eine domain aussuche unter option wenn da 10 drine stehen und eins ausuchen tut springt der auf das erste von der option so zusagen erste ist de und will info haben wehel info aus dan geht der auf de woran kann das liegen kann mir da einer helfen

    PHP-Code:

                <select class='form-control' name="tld"/>
                <option value="all"><?php echo LoadLang('#ALL#'); ?></option>
                    <?php foreach($whoisservers as $whoisserver => $value){ echo "<option value="".$whoisserver.""".((isset($_POST['tld']) && $_POST['tld'] == $whoisserver) ? " selected="selected"" "").">.".$whoisserver."</option>"; } ?>
                </select>

  • #2
    Ich verstehe kein Wort. Kannst du ganze Sätze bilden und Satzzeichen verwenden so dass man zumindest verstehst was du uns da schildern möchtest?

    Kommentar


    • #3
      also mein problem ist wenn ich auf domain prüfen gehe werden mir alle angezeigt die frei sind beim select option suche ich die end domain aus wie domain.de oder domain.org oder Domin.berlin
      wenn ich auf domain.de gehe springt der auf Domain.Berlin um das ist mein porblem weiß nicht warum

      Kommentar


      • #4
        Zwei Varianten:

        1. Du generierst kaputtes HTML (Validator => https://validator.w3.org/)
        2. Du hast irgendein JavaScript welches da reinfunkt

        Anhand dieser 4 Zeilen kann Dir niemand beantworten weshalb du das Problem hast.

        Kommentar


        • #5
          hier ist der ganse code

          PHP-Code:
          <?php
          if(!empty($_SERVER['SCRIPT_FILENAME']) && 'shop_domain.tpl' == basename($_SERVER['SCRIPT_FILENAME'])):
          die(
          '');
          endif;

          include_once(
          "includes/domain/domaincheck_whois.php"); ?>





          <div class="headheader0">
              <div class="headheader1" style="float: left;"  align="center"><i class="halflings halflings-shopping-cart glyphicon-white"></i></div>
              <div class="headheader2" style="float: left;"  align="left"><?php echo LoadLang('#DOMAINORDER#'); ?></div>
              <div class="headheader3" style="float: right;" align="center"><a href="/Home"><i class=" glyphicons glyphicons-home glyphicon-white color999"></i></a></div>
          </div>

          <form name="Formular" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"/>

          <div id="content2_shop" style="padding-bottom:30px;" align="center">

          <div style="width:100%; overflow:auto;" align='center'>
              <div style='width:600px;'>
                  <div class='content2_box20' style='text-align:center; padding-top:18px;'>www.</div>
                  <div class='content2_box12'><input type='text' name='domain' value='<?php if(isset($_POST["domain"])){ echo $_POST['domain'];} ?>' placeholder='Domain' class='form-control'/></div>
                  <div class='content2_box4'>
                      <select class='form-control' name="tld"/>
                      <option value="all"><?php echo LoadLang('#ALL#'); ?></option>
                          <?php
                          
          foreach($whoisservers as $whoisserver => $value){
                          echo 
          "<option value="".$whoisserver.""".((isset($_POST['tld']) && $_POST['tld'] == $whoisserver) ? " selected="selected"" "").">.".$whoisserver."</option>";
                          } 
          ?>
                      </select>
                  </div>
                  <div class='content2_box16'>
                  <button name='check' value='' class='btn btn-info'><?php echo LoadLang('#CHECK#'); ?></button>
                  </div>

              </div>
          </div>

          <div style='width: 100%; padding:25px;'><hr></div>


          <?php if(isset($_POST['domain']) AND $_POST['domain'] != '' AND isset($_POST['tld']) AND $_POST['tld'] != ''){

              include(
          "includes/domain/domaincheck.php");

          echo
          "</div>";

          ?>

          Kommentar


          • #6
            Hast du Dein HTML validiert?

            Kommentar


            • #7
              das kamm raus

              HTML-Code:
                	Error: Start tag seen without seeing a doctype first. Expected <!DOCTYPE html>.
              
              	From line 1, column 1; to line 2, column 105
              
              	↩<script type="text/javascript" src="/includes/password_check/password_check_prepaid_popup.js?1575228225"></scri 	Warning: The type attribute is unnecessary for JavaScript resources.
              
              	From line 1, column 1; to line 2, column 105
              
              	↩<script type="text/javascript" src="/includes/password_check/password_check_prepaid_popup.js?1575228225"></scri 	Error: Element head is missing a required instance of child element title.
              
              	From line 5, column 1; to line 5, column 79
              
              	script>↩↩↩<form action="/Registration/Prepaid" id="password_check_button3" method="POST"><div  	 		Content model for element head: 		If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element. 		Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element. 	 	 	Error: The align attribute on the div element is obsolete. Use CSS instead.
              
              	From line 14, column 9; to line 14, column 28
              
              	><div align="center">↩  	Error: Stray end tag span.
              
              	From line 28, column 16; to line 28, column 22
              
              	</span></span></div> 	Error: Stray end tag span.
              
              	From line 35, column 16; to line 35, column 22
              
              	</span></span></div> 	Error: Duplicate ID myModalLabel.
              
              	From line 74, column 9; to line 74, column 50
              
              	>↩ <h4 class="modal-title" id="myModalLabel">Kontak 	Warning: The first occurrence of ID myModalLabel was here.
              
              	From line 11, column 9; to line 11, column 50
              
              	>↩ <h4 class="modal-title" id="myModalLabel">Prepai 	Error: The align attribute on the div element is obsolete. Use CSS instead.
              
              	From line 77, column 9; to line 77, column 28
              
              	>↩ <div align="center">↩  	Error: Duplicate ID myModalLabel.
              
              	From line 119, column 9; to line 119, column 50
              
              	>↩ <h4 class="modal-title" id="myModalLabel">Kunden 	Warning: The first occurrence of ID myModalLabel was here.
              
              	From line 11, column 9; to line 11, column 50
              
              	>↩ <h4 class="modal-title" id="myModalLabel">Prepai 	Error: The align attribute on the div element is obsolete. Use CSS instead.
              
              	From line 122, column 9; to line 122, column 28
              
              	>↩ <div align="center">↩  	Error: The align attribute on the div element is obsolete. Use CSS instead.
              
              	From line 126, column 1; to line 126, column 21
              
              	↩↩<div align="center" >< 	Error: The align attribute on the div element is obsolete. Use CSS instead.
              
              	From line 127, column 5; to line 127, column 94
              
              	er" >↩ <div style="width: 400px; height: 290px;" align="left" class="bootstrap-admin-login-form">↩↩  	Error: Saw a form start tag, but there was already an active form element. Nested forms are not allowed. Ignoring the tag.
              
              	From line 129, column 9; to line 129, column 104
              
              	↩↩ <form method="post" action="/member.php?eP=memberLoginCheck" class="bootstrap-admin-login-form">↩  	Warning: The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.
              
              	From line 139, column 13; to line 139, column 100
              
              	<a href="member.php?eP=memberPassword" class="btn btn-lg btn-default" name="supportadd"> Passw 	Error: End tag form seen, but there were open elements.
              
              	From line 141, column 9; to line 141, column 15
              
              	↩↩ </form>↩ < 	Error: Unclosed element div.
              
              	From line 127, column 5; to line 127, column 94
              
              	er" ><div style="width: 400px; height: 290px;" align="left" class="bootstrap-admin-login-form">↩↩  	Error: Unclosed element div.
              
              	From line 126, column 1; to line 126, column 21
              
              	↩↩<div align="center" >< 	Error: Unclosed element div.
              
              	From line 123, column 13; to line 123, column 36
              
              	<div style="width:90%;">↩  	Error: Unclosed element div.
              
              	From line 122, column 9; to line 122, column 28
              
              	>↩ <div align="center">↩  	Error: Unclosed element div.
              
              	From line 121, column 7; to line 121, column 30
              
              	iv>↩ <div class="modal-body">↩  	Error: Unclosed element div.
              
              	From line 116, column 5; to line 116, column 31
              
              	log">↩ <div class="modal-content">↩  	Error: Unclosed element div.
              
              	From line 115, column 3; to line 115, column 28
              
              	none;">↩ <div class="modal-dialog">< 	Error: Unclosed element div.
              
              	From line 114, column 1; to line 114, column 141
              
              	d="POST"><div class="modal fade" id="memberlogin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;"><di 	Fatal Error: Cannot recover after last error. Any further errors will be ignored.
              
              	From line 141, column 9; to line 141, column 15
              
              	↩↩ </form>↩ <  

              Kommentar


              • #8
                also wenn ich auf den button prüfen drücke ändert er das auf igend eine andere domain

                Kommentar


                • #9
                  Debuggen => https://php-de.github.io/jumpto/leitfaden/

                  Kommentar


                  • #10
                    ne zeigt der mir auch nicht an

                    Kommentar


                    • #11
                      auf wenn ich eine domain ausgesucht habe der bleibt immer auf der einen

                      Kommentar


                      • #12
                        Zitat von luiluiboy014 Beitrag anzeigen
                        also mein problem ist wenn ich auf domain prüfen gehe werden mir alle angezeigt die frei sind beim select option suche ich die end domain aus wie domain.de oder domain.org oder Domin.berlin
                        wenn ich auf domain.de gehe springt der auf Domain.Berlin um das ist mein porblem weiß nicht warum
                        setz einfach mal aller 7cm ein Komma, das erhöht die Lesbarkeit.
                        PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

                        Kommentar


                        • #13
                          Zitat von luiluiboy014 Beitrag anzeigen
                          auf wenn ich eine domain ausgesucht habe der bleibt immer auf der einen
                          Ich verstehe dich nicht.

                          Bitte schreibe so dass man auch versteht was du von uns willst, sonst lasse es lieber ganz bleiben.

                          das kamm raus
                          Ja und?
                          Sollen wir jetzt etwa die Fehler beheben. Das ist deine Aufgabe, du hast da doch alle Notwendigen Informationen.

                          Wenn du nicht programmieren willst oder dir nicht mehr Mühe gibst dein Problem zu beschreiben, solltest du evtl. das Hobby wechseln.

                          OFFTOPIC
                          Zitat von akretschmer
                          7cm ein Komma,
                          Aber mit dem Edding, sonst sieht man die nicht.

                          Kommentar


                          • #14
                            habe hir eine video mann kann es nicht so formuliren
                            was am ende vom video passiert weiß ich nciht wie ich das lösen kann
                            https://files.fm/f/5d2tyza8

                            Kommentar


                            • #15
                              Deine ' selected' ist einfach am falschen Ort. Weshalb musst du herausfinden. Debuggen.

                              Kommentar

                              Lädt...
                              X