Question: 1) Make a higher/lower number guessing game using a session. Grab the starter code for this game. On the first visit from the user, your

1) Make a "higher/lower" number guessing game using a session.

Grab the starter code for this game. On the first visit from the user, your PHP script should pick and "remember" (using session) a random number (1-100). The user should be able to submit a guess using the provided form. Your script should provide feedback on user guesses: higher, lower, correct The forms reset button should cause your script to regenerate (and re-remember) a new random number. Variations are welcome. For example: http://stungeye.com/school/esp/

This is the starter code:

session_start();
define("RANDOM_NUMBER_MAXIMUM", 100);
define("RANDOM_NUMBER_MINIMUM", 1);
$user_submitted_a_guess = isset($_POST['guess']);
$user_requested_a_reset = isset($_POST['reset']);
// Implement the guessing game logic here.
?>
Number Guessing Game

Guessing Game

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!