View Full Version : Add a count to &_POST

07-01-2007, 04:03 AM
Good day to you all,
I was wondering how can I add a count to one of my $_POST.
I know count++ but I don't know how to include it in my code ?

Thanks !

07-01-2007, 04:08 AM
I'm not really sure what you're asking...

Here is a simple loop:

$count = 0; // Declare the variable $count and set it equal to 0.

while($count<=10){ // Output numbers 0 to 10.

echo $count."\n"; // Print to the screen the current value of $count, add a new line.
$count++; // Increment $counter by 1.