[PHP] Re: Random number Question

2002-04-29 Thread Dan Koken
OOPS! You are right on.. I noticed my error after I sent it. The name='guess' was on the input.?? Daaa! it's Monday .. OK!! This should work: === The computer has picked $another number between 1 and 10. Guess the number and you win! Enter your gu

[PHP] Re: Random number Question

2002-04-29 Thread Dan Koken
Try something like this and see if it works??? The computer has picked $another number between 1 and 10. Guess the number and you win! Enter your guess: "; if (isset($guess)) { srand((double)microtime()*100); $number =

[PHP] Re: Random number Question

2002-04-18 Thread Joel Colombo
actually if (intval($guess) == $number { would be more acuate then the trim ( ) you would eliminate all alpha characters and floating points saying it has to be a whole integer Joel "Ralph Friedman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In ar

[PHP] Re: Random number Question

2002-03-13 Thread Ralph Friedman
In article <[EMAIL PROTECTED]>, Jennifer Downey wrote: > > > you've got the "Name" attribute attached to the wrong INPUT element: > if($guess = = $number) { > incorrect syntax here. that should be: if ($guess == $number) { better would be: if (trim($guess) == $number { this will