-->
Page 1 of 1

Push Button Web Form

PostPosted: Sun Apr 16, 2017 1:10 pm
by Otto Haldi
Hello, I'm new with arduino and the esp 8266.
I like to make a simple push button on my web form. This button to the following action:
if (request.indexOf('/PULS=ON') != -1) {
lcd.setCursor(0,1);
lcd.print("WEB PULZ... ");
// etc....
}
on the web page I did like this:
client.println("<td><input type=button value=PULS onmousedown=location.href='/PULS=ON'></td>");
Every think work well.
My problem is, every time when I make a refresh of my page, the button send the
GET /PULS=ON HTTP/1.1 command!
I like to have this GET only when I press the button.
Many thanks for your help
Otto