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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,049 Views
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 Kudos
Reply
1 Solution
894 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Utsavi,

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

Regards,

Carlos

View solution in original post

0 Kudos
Reply
2 Replies
895 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Utsavi,

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

Regards,

Carlos

0 Kudos
Reply
894 Views
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 Kudos
Reply