Hello there,I am developing an application using Network Component Version 7.13.1. The application has a HTTP Server and I am using method POST in a several of html pages to submit my device configurations.Every time that a POST is received by HTTP Server, it calls netCGI_ProcessData(), but I don't know how to find out what form is being submitted.Should I use unique input names in my html pages even in different forms? Or is there any way to work with different forms with same input names?Regards,Murilo
Moving this thread to the "Keil" category  for better visibility around this topic.
Add a hidden object first to each page, like this:
<input type=hidden value="led" name=pg>
You will then receive the post information in netCGI_ProcessData() as:
The first variable identifies the page from which the POST comes.
Hi Franc, thanks for your reply! That was the solution I've used. It'd be nice having a function supplyed by the library to find it out without depending of web application. I know that it'd make the firmware application dependent of the file names contained in file system. That is, changing a file name would result in unexpected behavior. It'd not be a problem for compact web server.
View all questions in Keil forum