title: Curious error on Chrome and Android but page works fine on Internet Explorer
body: <p>A curious error has appeared out of nowhere on one of the (php based) pages on my website. The page in question has mostly php code but also some javascript. It works perfectly fine on Internet Explorer and Firefox - a user can select the BEGINNER level and FIRST QUIZ, a user name (repeated) and then take a quiz with no problem at all!</p>
  
  <p>On Chrome and Android however, it keeps resorting to asking the user to "please enter quiz password" - even though there is no password for this quiz (and as mentioned, it works fine and goes straight to the quiz in IE). Furthermore it works fine on Safari (IPHONE) as well!</p>
  
  <p>The website URL is here:</p>
  
  <p><a href="http://www.teachyourselfpython.com/testandtrack_v5/index.php" rel="nofollow noreferrer">http://www.teachyourselfpython.com/testandtrack_v5/index.php</a></p>
  
  <p>(to test it, simply select BEGINNER and INTRO to PROGRAMMING quiz - then enter your username twice, consent (tick box) and then the quiz should appear when you click the submit button. (note that it will work fine in IE and Safari). It may be that it will work for you taking it, in which case, what is wrong with the display and form input on my end? </p>
  
  <p>Can anyone explain why this is happening?
  One suggestion is that it may have something to do with the javascript?(but why is it only happening in Chrome - and note that just yesterday it worked perfectly fine in Chrome too!) Nothing was changed so why this sudden error?</p>
  
  <p>The html part of the page that generates the section that relates to the quiz password being generated (note that the first quiz HAS NO password associated with it) is below:</p>
  
  <pre><code>        &lt;div id="head" align="center"&gt;
              &lt;img src="img/typbanner.png" alt="www.teachyourselfpython.com" width=600 height=180 /&gt;
          &lt;/div&gt;
       &lt;br&gt;
        &lt;p&gt;Please note: Best viewed in &lt;a href="https://www.google.co.uk/chrome/browser/features.html?brand=CHBD&amp;ds_kid=43700010857960474&amp;gclid=EAIaIQobChMIr-OM29D32AIVzLDtCh0mHQS1EAAYASABEgKoUfD_BwE&amp;gclsrc=aw.ds&amp;dclid=CNua29zQ99gCFbEi0wod7UUM2g" target="_blank"&gt;Chrome&lt;/a&gt; or &lt;a href="https://www.mozilla.org/en-GB/firefox/new/?scene=2" target=" _blank"&gt; Firefox&lt;/a&gt;. &lt;i&gt;Note : Beta Testing&lt;/i&gt;&lt;/p&gt;
          &lt;div id="main_body" align="center"&gt;
              &lt;h2&gt;Time to try a &lt;big&gt;&lt;b&gt;TEST!&lt;/b&gt;&lt;/big&gt;&lt;/h2&gt;
  
              &lt;form id="myForm" name="onlyForm" action="quiz.php" class="home"  method="POST"&gt;
                  &lt;select name="quiz_level" id="quiz_form" class="form-control"&gt;
                      &lt;option disabled selected="true"&gt;-- Select The level of your Test --&lt;/option&gt;
                      &lt;option value="Beginner"&gt;Beginner&lt;/option&gt;
                      &lt;option value="Intermediate"&gt;Intermediate&lt;/option&gt;
                      &lt;option value="Advanced"&gt;Advanced&lt;/option&gt;
                  &lt;/select&gt;
  &lt;select  class="form-control" name="quiz" id="got_quiz" style="display:none;"&gt; &lt;!--onchange="showUser(this.value)"--&gt;
  
  
    &lt;/select&gt;
    &lt;input type="password" name="quiz_password" placeholder="Enter Quiz Password" required id="password" style="display:none;" /&gt;
  
              &lt;h3&gt;Rules&lt;/h3&gt;
  </code></pre>
  
  <p>The bit of the php code referring to the generation of the error "Hey, please enter the password", is pasted below: Please note however, that there is nothing wrong with the code as it works PERFECTLY in Internet Explorer. Safari. and Firefox!!!!! </p>
  
  <pre><code>while (mysqli_num_rows($m_questions_from_DB)&lt;1) {
              $user_msg = 'Hey, weird, but it seems there are no questions in this quiz!';
              header('location: index.php?user_msg='.$user_msg.'');
              exit();
          }
          if($_POST['consent'] != 1){
              $user_msg = 'Hey, You have to consent first to begin the quiz!';
              header('location: index.php?user_msg='.$user_msg.'');
              exit();
          }else if(($_POST['class_name'] == "non" &amp;&amp; !empty($_POST['school_pin'])) || ($_POST['class_name'] != "non" &amp;&amp; empty($_POST['school_pin']))){
              if($_POST['class_name'] == "non"){ echo "aakakakak"; }
              $user_msg = 'Hey, You have to insert correct school pin and choose your class'.$_POST['school_pin'].$_POST['class_name'];
              header('location: index.php?user_msg='.$user_msg.'');
              exit();
          }elseif($quiz_pass != '0' &amp;&amp; empty($_POST['quiz_password'])){
              $user_msg = 'Hey, Enter a correct Quiz password';
              header('location: index.php?user_msg='.$user_msg.'');
              exit();
          }elseif(!empty($_POST['quiz_password']) &amp;&amp; $_POST['quiz_password'] != $quiz_pass){
              $user_msg = 'Hey, Enter a correct Quiz password';
              header('location: index.php?user_msg='.$user_msg.'');
              exit();
          }
       //setting Question No. to 1 on quiz page(necessary due to rand() above)
          $m_display_ID = 1;
  </code></pre>