Unable to handle webpage response in lua handler

Created a webpage with two buttons (agree and cancel) and placed in /www/test/index.html

Created a lua handler and placed in
/lib/netifd/test.lua

uhttpd config is as below,
config uhttpd 'redirect'
list listen_http 'IP:9005'
list listen_https 'IP:9005'
option home '/www/test'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option lua_handler '/lib/netifd/test.lua'

When a client connects and access the webpage with IP:9005 ,i am able to view the page;
when i do the button click, i am not able to see anyting on lua handler. help me to get the response in lua handler.

Note : basically having a webpage thrown to client and needs to store their response in AP

you want people to guess your lua code ?

it has simple function to write "sample text " into file

great, then it should be easy to solve once you post it.

How to send event from button in html code to lua code ? How to handle the event in lua code ?