As the title says... Chat on...

User avatar
By na1pir
#11711 Hi everyone! I am quite new to lua and even more to html, but I have been developing in c for ages.
I am struggling with something; How would someone get number from webpage in lua.
Code: Select all  <input type="number" name="points"   min="0" max="100" step="1" value="30">
  <input type="submit">

In examples I have seen so far everyone are just using _GET to test which button was pressed. Is there anyway to input and parse numbers from forms?
Thank you for your suggestions.
User avatar
By hamishcunningham
#11783 Lines 28/29 of https://github.com/hamishcunningham/fis ... grow/j.lua might help -- they pick some data out of a form post that the ESP receives over HTTP.

The basic problem with doing anything more sophisticated is that there is very little free memory to play with -- so the type of HTML parsing library that you would normally reach for is too large :-(

HTH

Hamish
https://hamish.gate.ac.uk/