-->
Page 1 of 2

) missing

PostPosted: Fri Dec 01, 2017 10:20 am
by potz
Hi,

It's not clear why I get "excepted ) before radio. Probably an escape char must be used. But why and where?
It there any rules about that?

Code: Select allclient.println("<input type="radio" name="RedLEDState" value="RED_OFF" checked="checked"> OFF<br>");


thanks

Re: ) missing

PostPosted: Fri Dec 01, 2017 10:50 am
by trackerj
Code: Select allclient.println("<input type=\"radio\" name=\"RedLEDState\" value=\"RED_OFF\" checked=\"checked\"> OFF<br>");

Re: ) missing

PostPosted: Mon Dec 04, 2017 4:36 am
by potz
Thanks!

A question more: how to recover the button state ?

I would like to pre-checked the button in the last state.

thanks

Re: ) missing

PostPosted: Tue Dec 05, 2017 10:27 am
by Barnabybear
Hi, you can use \' as well as \" , I find it easier to read:

Code: Select allclient.println("<input type=\'radio\' name=\'RedLEDState\' value=\'RED_OFF\' checked=\'checked\'> OFF<br>");


Code: Select allclient.println("<input type=\"radio\" name=\"RedLEDState\" value=\"RED_OFF\" checked=\"checked\"> OFF<br>");