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