Tidying up code

Does this look correct for the LED_state part??

//LEDS
int i;
for (i = 0; i < 25; i++)
{
   if (StrContains(HTTP_req, "LED26=1")) {
   LED_state[i] = 1;  // save LED state
   digitalWrite(7, HIGH);
 }
 else if (StrContains(HTTP_req, "LED26=0")) {
   LED_state[i] = 0;  // save LED state
   digitalWrite(7, LOW);
 }
}

If yes how i also change the LEDnumber= part ?
Thank you for pointing me in the right direction.