How do I use a toggle button?

bashsoft

New Member
I'm working on an Arduino project that uses the Ethernet shield.The Adruino connects to my laptop (server) and reads a '.php' file telling it to turn on or off a relay.The user interface is an HTML page. There are submit forms with values on and off. The values get sent to a handler page for processing so that it can be read by the Arduino.I want to make use of a CSS/JavaScript-styled toggle button to replace the hideous looking submit buttons. This: http://proto.io/freebies/onoff/ is the button I want to use.How do I extract the values of the toggle states and implement it on my html page?Thank you.
 
Back
Top