Taking in some advice, this is what I came with.
Any ideas how I can improve, would be great.
"<center>
<form method = "$_Post">
<?php
if (empty($guesses)){
$number = rand (1,50);
$guesses++;} // Check to see if this is 1st Turn
<input type ="hidden"
name = "Number"
value = "$number">
if ($guess > $number){
print "High";
$guessCounter++;}
else if($guess < $number){
print "Low";
guessCounter++;}
else {
print <<<HERE
My number was $number and you got it in $guessCounter tries!
CONGRATZ!!!
HERE;}
<input type ="text"
name = "guess"
value = "$guess">
<input type ="submit"
value = "Guess">
?php>
</center>"
Havent had a chance to try it yet (my holy trinity is at home NOT
work, but even if i nailed it, I would love some higher level input
as to how to improve the code.
Thanks in advance,
Jeff
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/