Receive Multiple numbers of variable by get method using for loop is not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Receive Multiple numbers of variable by get method using for loop is not working

跳至解决方案
1,053 次查看
utsavikalpesh
Contributor V

Hi All,

 

I am using mqx v4.0 and of code warrior v10.2 and have created one project which is receiving request of html page.Problem is there are upto 23 variable which i need to check and  send via module,but for loop is not working means module is not sending that data.I also have attached the code with this.Please send me solution. Variable are individually checked and module is sending data but in for loop it is not working.Plz Help.........

 

Note:

 

     Here in for loop "i" of cgi.c is indicating name of variables in index.html page.

Original Attachment has been moved to: cgi.h.zip

Original Attachment has been moved to: index.html.zip

0 项奖励
回复
1 解答
898 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Utsavi,

web_hvac example uses multiple variables. have you checked this example?

Regards,

Carlos

在原帖中查看解决方案

0 项奖励
回复
2 回复数
899 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Utsavi,

web_hvac example uses multiple variables. have you checked this example?

Regards,

Carlos

0 项奖励
回复
898 次查看
utsavikalpesh
Contributor V

Hi Carlos,

Thnx for reply.

Of course I have seen that and from it I have made my project by taking

some portion of that demo.

The variable that is used in web_hvac demo is of small number.

If I want to use say 100 variable start form name="0" upto name="99" then I

need to use "for loop" with httpd_get_varval,but it was not working.Right

now I have made the code for that and it is working well..

Thnx again for reply......:smileylaugh::smileyhappy:

On Thu, May 29, 2014 at 8:33 PM, Carlos Alberto Musich Cuevas <

0 项奖励
回复