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
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 =
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
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
4 matches
Mail list logo