Hello! I’m rookie.
Please help me to solve problem with storing stuff in hidded fields for ‘Guess a number’ program:
https://hastebin.com/vomasuvere.xml
Why this…
[php]if ($choice == ‘big’){
print $guess[1]=($guess[0] / 2);
} elseif ($choice == ‘small’) {
print $guess[2]=($guess[0] + 25); [/php]
…doesn’t work?
p.s.
I know that it’s the worst decision to use arrays and hidden fields in such program; but I’ve made decision to make it like this and can’t drop it Please help!
p.p.s.
This is my live stream, how I made this program - https://www.youtube.com/watch?v=lLQ4J2JkO60