In this code whatsCode:<input type="hidden" name="secretNumber" value="<?php echo $secretNumber; ?>">does?Code:value="<?php echo $secretNumber; ?>
In this code whatsCode:<input type="hidden" name="secretNumber" value="<?php echo $secretNumber; ?>">does?Code:value="<?php echo $secretNumber; ?>
In this game, you need to guess secretNumber. This number do not change on each request to the server. It only generated once, on your first visit to the game page, this number is generated.
When you submit form with your guessed number, how server know what was the secretNumber it generated on previous request ?
Web server do not have memory, it is like an alzheimer patient, so you have to tell it the secretNumber it generated on each request, if not it will think it did not generated one and generate a new number.
In out case, we will add it as part of form. But we don't want users see it, so we use <input type="hidden">, these input fields are just like other input field, but invisible to users.
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
so in this code the value of the secret number is echoed where??
i mean... this code is the one to print the value of SecretNumber so does it print the value in the server memory or something? :P
Stop trying to hack game. You don't need Cheat Engine for this.
Just view source code, you will see it![]()
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
Bookmarks