User manual

All elements presented so far were pure form factors that are used to design the
website. Next will be the important form-element to switch an LED.
<form method="GET">
<button type="submit" name="led" value="1">LED ON</button>
<button type="submit" name="led" value="0">LED OFF</button>
</form>
The form-element is, as the name suggests, meant to create forms online. These may
be registration forms for a website or surveys or similar things. The data entered by the
user can be transferred in different ways. For this element, we use the GET method,
where the entered data are simply transferred to the web server using the URL. This
form uses two buttons for this. Both are the type submit, which means that the form will
be transmitted directly when one of the buttons is pushed. Both buttons are named
led, but they have different values. When pushing the first button with the text LED ON,
the current URL will be called again, but with a small addition. Behind the URL, in this
case behind the IP of the module, you will now read /?led=1. This text is assessed in
the Arduino program by scanning for it and then reading the following digit with parse-
Int() and transferring it to the LED. With this first simple version of a form, you can
easily and comfortably control an LED.
This is what the URL looks like after the button LED ON has been pushed.
<BR>
<HR>
</font>
</HTML>
The last lines of the HTML source code do not contain anything new. Jumping to
the next line and a horizontal line complete the appearance before the document
is ended with </HTML>. You can now change the website in the sketch folder as