[PHP] Re: Random number Question

2002-04-29 Thread Dan Koken
Try something like this and see if it works??? ? $another = 'a'; if (isset($guess)) $another = 'another'; echo form action='number.php' method='post' BR The computer has picked $another number between 1 and 10.BR Guess the number and you

[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: === ? $another = 'a'; if (isset($guess)) $another = 'another'; echo form action='number.php' method='post'

[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

[PHP] Re: Random number Question

2002-03-13 Thread Ralph Friedman
In article [EMAIL PROTECTED], Jennifer Downey wrote: input type=text size=3 INPUT TYPE=submit VALUE=Submit my number NAME=guess you've got the Name attribute attached to the wrong INPUT element: INPUT type=text size=3 name=guess INPUT type=submit value=Submit my number if($guess = =