user24275: I am trying to make an arduino alarm clock to which you can send alarm clock times over the web.
This is the HTML code
 <input type="checkbox" name="alarm1" id="alarm1">1</button>

It's sending the HTTP correctly but the rest of the code insists that the alarms are always on.
      if (_server.arg("alarm1") = "on") {
      alarm1 = true;
      Serial.println("Alarm 1 is set");
  }
  else {
      alarm1 = false;
      Serial.println("Alarm 1 is inactive");
  }


user10394: The alarm is always on because you are setting it to be always on.  You code should say:
 if (_server.arg("alarm1") == "on") {


24275: <p>I am trying to make an arduino alarm clock to which you can send alarm clock times over the web.
This is the HTML code</p>

<pre><code> &lt;input type="checkbox" name="alarm1" id="alarm1"&gt;1&lt;/button&gt;
</code></pre>

<p>It's sending the HTTP correctly but the rest of the code insists that the alarms are always on.</p>

<pre><code>      if (_server.arg("alarm1") = "on") {
      alarm1 = true;
      Serial.println("Alarm 1 is set");
  }
  else {
      alarm1 = false;
      Serial.println("Alarm 1 is inactive");
  }
</code></pre>
 10394: <p>The alarm is always on because you are setting it to be always on.  You code should say:</p>

<pre><code> if (_server.arg("alarm1") == "on") {
</code></pre>
