Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2006
    Posts
    262
    Thanks
    23
    Thanked 1 Time in 1 Post

    Post Add a count to &_POST

    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 !

  • #2
    New Coder
    Join Date
    Mar 2005
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not really sure what you're asking...

    Here is a simple loop:

    PHP Code:
    <?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.

    }

    ?>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •