Pushing a html page to a client device when a push button is pressed

Hi,

Not sure if this helps, but it works for me. This code puts a button on the web page and then the action can take you to a different page, or can control the arduino. If you are running a server on the Arduino, then these do the submit action which is like a specific web page request. The labeled Button is on the web page... and it sends it to the arduino. The arduino serves up the web page, so you don't need a separate server.

The first example code sends your browser off to google, from the arduino.

The second example, the action 192.168.1.177/A and action 192.168.1.177/B gets you the /A or /B after the GET which is sent back to the server running on the Arduino. This can be parsed out and you can then take action in the arduino code to either do the A function or the B function.

Regards,
Walt,

           client.println(F("<FORM METHOD='LINK' ACTION='http://www.google.com'><INPUT TYPE='submit' VALUE='go and google stuff'></FORM>  "));
    client.println(F("<FORM METHOD='LINK' ACTION='http://192.168.1.177/A\r'><INPUT TYPE='submit' VALUE='Den Pole Light On '></FORM>  "));                  
client.println(F("<FORM METHOD='LINK' ACTION='http://192.168.1.177/C\r'><INPUT TYPE='submit' VALUE='Den Pole Light Off '></FORM>  "));