Using html <form>

Hi all,

I am using Arduino Uno r3 and the Velleman Ethernet Shield.
Managed connections and KA_04_sample_code is running.

Now I want ot use the webserver to switch an LED on and off.
Would like to do that with t html comand , but I don#t know how to use it in the string with the apostrophe.
Code is attached with which I try to do so.

Any ideas?

static word homePage() { bfill = ether.tcpOffset(); bfill.emit_p(PSTR( "HTTP/1.0 200 OK\r\n" "Content-Type: text/html\r\n" "Pragma: no-cache\r\n" "\r\n" "<meta http-equiv='refresh' content='1'/>" "<title>AirControl</title>" "<h1>TEST</h1>" "<form method=get>" "<input type=checkbox name=LED1 value=2 onclick=submit(); checked>LED1" "</form>"), 10); return bfill.position(); }

The very quick and ugly way is to look at the http request coming from the browser, and search for a small piece of text. If you find this piece of text, then you toggle a relay.