...

View Full Version : Add a count to &_POST



Peuplarchie
07-01-2007, 03: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 !

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

Here is a simple loop:



<?php
$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.

}

?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum