I *think* my last question on this topic is: I have html buttons that I want to use a variable for the "value" attribute... in other words, the button label is a variable.
I have figured that piece out. What I can't figure out is how to allow a space as part of the label. Here is a sample of my code:
String WebPage;
char A_Click[16]; //this variable is populated from an input text on a my webpage. It is used to create the label of a button on another page.
… lots of code here...
webPage += "<FORM METHOD=\"POST\"action=\"/A_Click\">";
webPage += "<input type=\"submit\" style=\"font-size : 35px; width: 50%; height: 100px;font-family: \"Trebuchet MS\", Arial; value=";
webPage += A_Click;
webPage += ">";
webPage += "</form>"
When I run this, the button label shows the content of my variable (rather than "Submit Query") as I would hope. However, I cannot have any spaces. So:
"ClickMeNow" will display as "ClickMeNow" on the button.
"Click Me Now" will display as "Click" on the button.
Anything I can do to the code to allow spaces to be a part of char A_Click and therefore display in the button label?
As always, thanks for the help.