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,061件の閲覧回数
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 解決策
906件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Utsavi,

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

Regards,

Carlos

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
907件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Utsavi,

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

Regards,

Carlos

0 件の賞賛
返信
906件の閲覧回数
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 件の賞賛
返信