-->
Page 1 of 2

error message: expected ',' or ';' before numeric constant

PostPosted: Wed Jun 08, 2016 7:23 am
by henkoegema
I'm trying to compile (Arduino IDE) a web page for text input to a LCD screen connected via I2C with an ESP8266-1.
(line numbers only for clarification)

I get error message on line 4: expected ',' or ';' before numeric constant

What am I doing wrong on line 4 ?

1. String form =
2. "<center>"
3. "<h1>LCD input screen</h1>"
4. "<textarea rows="4" cols="20" name="lcd" form="mylcdform">" <-------- :?
5. "</textarea>"
6. "</center>"

7. "<center>"
8 "<form action="msg" id="mylcdform">"
9. "<input type="submit">"
10. "</form>"
11. "</center>";

Re: error message: expected ',' or ';' before numeric cons

PostPosted: Wed Jun 08, 2016 7:29 am
by reaper7
replace:
Code: Select all"<textarea rows="4" cols="20" name="lcd" form="mylcdform">"

with:
Code: Select all"<textarea rows=\"4\" cols=\"20\" name=\"lcd\" form=\"mylcdform\">"


internal quotations must be preceded by: \

Re: error message: expected ',' or ';' before numeric cons

PostPosted: Wed Jun 08, 2016 8:17 am
by henkoegema
reaper7 wrote:replace:
Code: Select all"<textarea rows="4" cols="20" name="lcd" form="mylcdform">"

with:
Code: Select all"<textarea rows=\"4\" cols=\"20\" name=\"lcd\" form=\"mylcdform\">"


internal quotations must be preceded by: \


Thanks very much. :)
(I have spent days to find it (with no result) )

Re: error message: expected ',' or ';' before numeric cons

PostPosted: Sun Jun 12, 2016 9:08 am
by henkoegema
Who can point me to a tutorial where I can learn about the syntax of HTML code in Arduino IDE?