A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Simple loop

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Posts
    438

    Simple loop

    How can I make PHP keep looping this code?

    PHP Code:
    <?php
    $numb 
    $numb 1;
    echo 
    $numb;
    ?>
    I am a super newbie to PHP. Thanks!

  2. #2
    Junior Member
    Join Date
    May 2004
    Posts
    5
    Hi there,
    Try something like:
    PHP Code:
    <?php 
    while (whatever){
    $numb++;
    }
    echo 
    $numb;
    ?>

  3. #3
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    you probably dont want to send a long list of increasing numbers to the browser?
    So what are you actually looking for?

    Musicman

  4. #4
    Senior Member
    Join Date
    Aug 2003
    Posts
    438
    Ya.. I already figured it out though. Thanks.

    I have a few more questions, if you don't mind.

    How can I make a simple number generator, that is accessed by a button?

    From my knowledge of AS, I can make the number generator, but how do I tell it to only run when a button is hit? Also.. I want the user to be able to type in the number of characters in a text box. How do I load that amount into a variable? Thanks a bunch!

    ~~~~~~~EDIT:
    Here is the actual num gen: http://members.lycos.co.uk/scorpion990/php1.php

    Not too bad for 3 minutes. Now I just want it to be accessed with a button. Thanks for your help!!
    Last edited by Scorpion990; 05-31-2004 at 09:23 PM.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center