Incrementing values, assigned with a link, by 1, with a 'for' loop

I can normally assign another script, the value of x, with a link, like this: ABC. But can I increase the value of x by 1, each time a 'for' loop is repeated, so that i would have multiple links, each assigning the script 'index.php' different values. For example: ABC...ABC and so on.?


  • [code]$Lnk=array('A','B','C');for($i=0;$i<3;$i++)
    echo"<a href=index.php?x=$i>$Lnk";[/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion