Hi all,

I having a hard time understanding why this won't work. I have a form which
is suppose to pass the guess to the script. Here it is:

the form is guess.php:

<form action="number.php" method="post">
The computer has picked a number between 1 and 10. Guess the number and you

Enter your guess:
<input type="text" size="3">
<INPUT TYPE="submit" VALUE="Submit my number" NAME="guess">

The script is number.php:

echo"The number is:";

$number = rand(1,10);

echo $number;

if($guess = = $number) {
     echo"<BR>You have won!";
     print("<BR>Sorry that wasn't the answer");


Any help would be appreciated.

Thanks in advance
Jennifer Downey

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to