The code above works as long as i do not add the line indicated above.
Or, you can add that line, after deleting another one. That says exactly one thing. You are using every bit of available memory. Adding any more, and you are out of space.
Look at the code that you are generating. Ask your self whether you really need to control the height and width of the buttons. Ask yourself if the name radio is required, or, since the form is pretty small, would a shorter name work as well.
Anything you do to shorten the strings you are storing in SRAM will allow you to store more of them.
If you can not fit the strings in the available SRAM, then, you need to change where you store them. PROGMEM and SD cards are the usual choices when SRAM is not sufficient.
Try something simple like
client.println(F(""));
first. This moves the string storage from SRAM to flash (PROGMEM).
Thanks for the pointers and code breakdown, it sure looks better, however If i try it , the buttons do not respond
I have been piecing a web server with code from various sketches and adding my own
I am learning day by day but need some experts to keep me on the right track
Its crude but works, minus some things i want to clean up
I would appreciate it If you or anyone interested would have a look at the complete code and suggest changes to make it better.
I would like the button layout you suggest to work but so far no go.
Any other change to clean it up would be also very much appreciated.
I plan on posting the code for all to use, once things are cleaned up ...
Thanks for the pointers and code breakdown, it sure looks better, however If i try it , the buttons do not respond
Use your original code. When the form loads, use the contextual menu to view the page source.
Then, load the modified sketch, and try again. The resulting page source should be identical, with the possible exception of irrelevant white space.
If not, post both.
I would like the button layout you suggest to work but so far no go.
This is like saying "that didn't work". You need to describe/show what actually appeared/happened, and explain how that differs from what you wanted/expected.
White space/packet size has nothing to do with whether a submit button causes appropriate action, or not. If the submit button (or any other button) fails to perform an intended function, you need to determine if the failure was on the PC end or the Arduino end.
Try using the whole site, it's even better. Typing 'memory available' in the search box on the home page gave Arduino Playground - HomePage as the first result.