-
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!
-
Hi there,
Try something like:
PHP Code:
<?php
while (whatever){
$numb++;
}
echo $numb;
?>
-
Hi,
you probably dont want to send a long list of increasing numbers to the browser?
So what are you actually looking for?
Musicman
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|