Preview and Save/Submit doesn’t work in 5.3 For Loop (again)


#1

Tried Firefox and Chrome to submit the code but it does not work. (nothing happens)

<html>
  <head>
    <title>Solo For Loop!</title>
  </head>
  <body>
    <p>
      <?php
      // Write your for loop below!
       for ($i = 0; i < 100; $i = $i + 10) {
            echo $i;
      }
      ?>
    </p>
  </body>
</html>

#2

Hi, look close to..

($i = 0; i < 100; $i = $i + 1

this part

 ..;i < 100;..

it's missing the $ to i


#3

still doesn't work

<html>
  <head>
    <title>Solo For Loop!</title>
  </head>
  <body>
    <p>
      <?php
      // Write your for loop below!
       for ($i = 0; $i < 100; $i = $i + 10) {
            echo $i;
      }
      ?>
    </p>
  </body>
</html>

#4

DO you get any error when Save & Submit?

And you should count till 100 but with the

..;$i < 100; ..

it will cound till 90


#5

Yes, i had that error before on other lessons but it worked if i refreshed the site. This time it doesn't . If i click submit nothing happens. even if it only counts to 90 it should show me the results but it shows nothing. the submit button does not seem to work properly in this lesson.


#6

Try to put the number to 110 and try in another browser.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.